public GenericNode <T> AddTwoWay(GenericNode <T> newNode) { connections.Add(newNode); newNode.connections.Add(this); return(newNode); }
public GenericNode <T> AddOneWay(GenericNode <T> newNode) { connections.Add(newNode); return(newNode); }