示例#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;