예제 #1
0
 public GenericNode <T> AddTwoWay(GenericNode <T> newNode)
 {
     connections.Add(newNode);
     newNode.connections.Add(this);
     return(newNode);
 }
예제 #2
0
 public GenericNode <T> AddOneWay(GenericNode <T> newNode)
 {
     connections.Add(newNode);
     return(newNode);
 }