delete edges or vertices from a graph
graph or network
edge or a set or list of edges
vertex or a set or list of vertices
Important: The networks package has been deprecated. Use the superseding commands GraphTheory[DeleteEdge] and GraphTheory[DeleteVertex] instead.
This procedure modifies the given graph G by deleting the indicated edges or vertices. In each case the modified graph is also available as the value of the procedure call.
Either sets of edges or sets of vertices may be deleted from the graph G. In either case, the graph structure, including edge and vertex weight tables and neighbor sets are updated.
If G must be preserved unmodified then use duplicate() to create a copy of the graph G prior to any use of delete().
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[delete](...).
G ≔ complete⁡5:
Download Help Document