private void RemoveConnectionEdge(IEdge e, Connection conn) { this.VisitedGraph.RemoveEdge(e); this.EdgeConnections.Remove(e); this.ConnectionEdges.Remove(conn); Modify m = new Modify(); m.AddDeleteConnection(conn); this.Panel.AbstractShape.History.Do(m); }
public void RemoveEdge(IEdge e) { if (e == null) { throw new ArgumentNullException("e"); } if (!this.VisitedGraph.ContainsEdge(e)) { throw new ArgumentException("e is not part of the graph"); } Connection conn = this.EdgeConnections[e]; this.VisitedGraph.RemoveEdge(e); this.EdgeConnections.Remove(e); this.ConnectionEdges.Remove(conn); Modify m = new Modify(); m.AddDeleteConnection(conn); this.Panel.AbstractShape.History.Do(m); }
public void RemoveEdge(IEdge e) { if (e==null) throw new ArgumentNullException("e"); if (!this.VisitedGraph.ContainsEdge(e)) throw new ArgumentException("e is not part of the graph"); Connection conn = this.EdgeConnections[e]; this.VisitedGraph.RemoveEdge(e); this.EdgeConnections.Remove(e); this.ConnectionEdges.Remove(conn); Modify m = new Modify(); m.AddDeleteConnection(conn); this.Panel.AbstractShape.History.Do(m); }