public Node(Node node1, Node node2) { IsTerminal = false; Node1 = node1; Node2 = node2; }
public bool NodeEquals(Node node) { if (IsTerminal != node.IsTerminal) return false; if (IsTerminal) return true; return Node1.NodeEquals(node.Node1) && Node2.NodeEquals(node.Node2); }