shrink identifies a group of vertices as a single vertex
shrink(v1, G, vname)
graph or network
set of vertices of G
name for coalesced vertex
Important: The networks package has been deprecated.Use the superseding package GraphTheory instead.
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](...).
Download Help Document
What kind of issue would you like to report? (Optional)