public IContainerNode GetOtherContainerNode(IContainerNode node) { if (node.Equals(FirstNeighbor)) { return(SecondNeighbor); } if (node.Equals(SecondNeighbor)) { return(FirstNeighbor); } throw new OSPSuiteException("ContainerNode " + node.Name + "(" + node.Id + ") is not linked to NeighborhoodNode " + Name + "(" + Id + ")"); }