networks[shrink] - shrink identifies a group of vertices as a single vertex
|
Calling Sequence
|
|
shrink(v1, G)
shrink(v1, G, vname)
|
|
Parameters
|
|
G
|
-
|
graph or network
|
v1
|
-
|
set of vertices of G
|
vname
|
-
|
name for coalesced vertex
|
|
|
|
|
Description
|
|
•
|
This routine replaces v1 with a single new vertex in G and returns as its value the name of that the shrunken vertex.
|
•
|
The default name of the new vertex is an arbitrary one of the vertices in the subgraph being shrunk, or vname if such a name has been provided.
|
•
|
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[shrink](...).
|
|
|
Examples
|
|
Important: The networks package has been deprecated.Use the superseding package GraphTheory instead.
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?