Beispiel #1
0
        public DotEdge SetHeadPort(string port, DotCompass compass)
        {
            if (String.IsNullOrEmpty(port) && ReferenceEquals(compass, null))
            {
                AttrValues.ClearAttribute("headport");

                return(this);
            }

            if (String.IsNullOrEmpty(port))
            {
                AttrValues.SetAttribute("headport", compass.Value);

                return(this);
            }

            if (ReferenceEquals(compass, null))
            {
                AttrValues.SetAttribute("headport", port.ValueToQuotedLiteral());

                return(this);
            }

            AttrValues.SetAttribute("headport", (port + ":" + compass.Value).ValueToQuotedLiteral());

            return(this);
        }
Beispiel #2
0
        public DotEdge SetTailPort(DotCompass compass)
        {
            AttrValues.SetAttribute("tailport", compass.Value);

            return(this);
        }
Beispiel #3
0
        public DotEdge SetHeadPort(DotCompass compass)
        {
            AttrValues.SetAttribute("headport", compass.Value);

            return(this);
        }
Beispiel #4
0
 internal DotNodeRef(string nodeName, string portName, DotCompass compass)
 {
     NodeName = nodeName;
     PortName = portName;
     Compass  = compass;
 }