public EdgeStatement(NodeStatement fromNode, NodeStatement targetNode, IEnumerable <IAttribute> attributes = null, Port fromPort = null, Port targetPort = null) { FromNode = fromNode; TargetNode = targetNode; Attributes = attributes; FromPort = fromPort; TargetPort = targetPort; }
public EdgeStatement(string fromNodeId, string targetNodeId, IEnumerable <IAttribute> attributes = null, Port fromPort = null, Port targetPort = null) : this((NodeStatement)null, (NodeStatement)null, attributes, fromPort, targetPort) { if (string.IsNullOrEmpty(fromNodeId) || string.IsNullOrEmpty(targetNodeId)) { throw new ArgumentOutOfRangeException(fromNodeId, "from and target node id should not be null or empty"); } _FromNodeId = fromNodeId; _TargetNodeId = targetNodeId; }