networks(deprecated)/delete - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : networks(deprecated)/delete

networks

  

delete

  

delete edges or vertices from a graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

delete(Eset, G)

delete(Vset, G)

Parameters

G

-

graph or network

Eset

-

edge or a set or list of edges

Vset

-

vertex or a set or list of vertices

Description

• 

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](...).

Examples

Important: The networks package has been deprecated.  Use the superseding commands GraphTheory[DeleteEdge] and GraphTheory[DeleteVertex] instead.

withnetworks:

Gcomplete5:

delete3,4,G:

verticesG,endsG

1,2,5,1,2,1,5,2,5

(1)

deleteincident5,G,G:

verticesG,endsG

1,2,5,1,2

(2)

See Also

GraphTheory[DeleteEdge]

GraphTheory[DeleteVertex]

networks(deprecated)[complement]

networks(deprecated)[contract]

with