public static bool CanBeNeighbours(this IGraph self, IVertex candidate, IVertex vertex) { return(!ReferenceEquals(candidate, vertex) && !self.AreNeighbours(candidate, vertex)); }
public static bool CanBeNeighbourOf(this IGraph self, IVertex first, IVertex second) { return(!ReferenceEquals(first, second) && !self.AreNeighbours(first, second)); }