示例#1
0
 /// <summary>
 /// Creates a new edge between two nodes.
 /// </summary>
 /// <param name="origin">The node to start the edge at.</param>
 /// <param name="target">The node to use as destination for the edge.</param>
 /// <param name="edgeType">The type of the edge to create.</param>
 public ControlFlowEdge(ControlFlowNode <TContents> origin, ControlFlowNode <TContents> target, ControlFlowEdgeType edgeType)
 {
     Origin = origin;
     Target = target;
     Type   = edgeType;
 }
示例#2
0
 /// <summary>
 /// Creates a new fallthrough edge between two nodes.
 /// </summary>
 /// <param name="origin">The node to start the edge at.</param>
 /// <param name="target">The node to use as destination for the edge.</param>
 public ControlFlowEdge(ControlFlowNode <TContents> origin, ControlFlowNode <TContents> target)
     : this(origin, target, ControlFlowEdgeType.FallThrough)
 {
 }