networks(deprecated)/gsimp - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


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

networks

  

gsimp

  

creates a simple graph from a multigraph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

gsimp(G)

Parameters

G

-

graph or network

Description

• 

Important: The networks package has been deprecated.  Use the superseding package GraphTheory instead.

• 

This procedure deletes loops in G and replaces multiple edges with a single edge of capacity equal to the combined capacities of the old edges.

• 

A copy of the graph should be made using duplicate() if you wish to preserve the structure of the original graph.

• 

The modified graph G is also returned as the value of the procedure call.

• 

This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[gsimp](...).

Examples

Important: The networks package has been deprecated.  Use the superseding package GraphTheory instead.

withnetworks:

Gcycle4:

addedge1,2,3,3,2,4,2,4,4,2,G:

endsconvertedgesG,list,G

1,2,2,3,3,4,1,4,1,2,3,3,2,4,2,4,4,2

(1)

HgsimpG:

endsconvertedgesH,list,H

1,2,2,4,2,3,3,4,1,4,4,2

(2)

See Also

GraphTheory

networks(deprecated)[edges]

networks(deprecated)[induce]