public void Link(NFA_Node from_node, NFA_Node to_node) { FromNode = from_node; ToNode = to_node; from_node.AddOutputLine(this); to_node.AddInputLine(this); }
public NFA_Line(string text = null, NFA_Node from_node = null, NFA_Node to_node = null) { Text = text; FromNode = from_node; ToNode = to_node; if (from_node != null) { from_node.AddOutputLine(this); } if (to_node != null) { to_node.AddInputLine(this); } }