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); }
public DotEdge SetTailPort(DotCompass compass) { AttrValues.SetAttribute("tailport", compass.Value); return(this); }
public DotEdge SetHeadPort(DotCompass compass) { AttrValues.SetAttribute("headport", compass.Value); return(this); }
internal DotNodeRef(string nodeName, string portName, DotCompass compass) { NodeName = nodeName; PortName = portName; Compass = compass; }