chickadee » graphs » graph-edge-remove!

(graph-edge-remove (G <multidigraph>) u v [id])method
(graph-edge-remove (G <multigraph>) u v [id])method
(graph-edge-remove (G <digraph>) u v)method
(graph-edge-remove (G <graph>) u v)method
(graph-edge-remove! (G <multidigraph>) u v [id])method
(graph-edge-remove! (G <multigraph>) u v [id])method
(graph-edge-remove! (G <digraph>) u v)method
(graph-edge-remove! (G <graph>) u v)method

Removes an edge u->v from the graph G. For multigraph types, if id is specified, it removes the edge u->v with ID id, otherwise removes all edges u->v. For undirected graphs, the edge u->v and v->u are both removed, as there is no distinction between the two.

Raises an error if the edge u->v does not exist in graph G.

G
the graph to remove the edge from
u
the head vertex
v
the tail vertex
id
(multigraph-types only) Specifies which edge with this identifier to remove, or removes all edges u->v if this is #f or not passed in.