Пример #1
0
 public static bool CanBeNeighbours(this IGraph self, IVertex candidate, IVertex vertex)
 {
     return(!ReferenceEquals(candidate, vertex) && !self.AreNeighbours(candidate, vertex));
 }
Пример #2
0
 public static bool CanBeNeighbourOf(this IGraph self, IVertex first, IVertex second)
 {
     return(!ReferenceEquals(first, second) && !self.AreNeighbours(first, second));
 }