networks[gsimp] - creates a simple graph from a multigraph
|
Calling Sequence
|
|
gsimp(G)
|
|
Description
|
|
•
|
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.
>
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
>
|
|
| (2) |
|
|
Download Help Document
Was this information helpful?