예제 #1
0
 public static bool Contains(this IArcs edge, INode node) => edge.From == node || edge.To == node;
예제 #2
0
 public bool Equals(IArcs other) => ReferenceEquals(other, this) || other is not null && other.From == From && other.To == To;