public void AddEdgeFirst(IEdge e) { if (!e.IsEdgeOf(Start)) { throw new ArgumentException("Wrong edge"); } _edges.Insert(0, e); Start = e.GetOppositeOf(Start); }
public void AddEdgeLast(IEdge e) { if (!e.IsEdgeOf(End)) { throw new ArgumentException("Wrong edge"); } _edges.Add(e); End = e.GetOppositeOf(End); }