networks
duplicate
copy a graph
Calling Sequence
Parameters
Description
Examples
duplicate(G)
G
-
graph or network
Important: The networks package has been deprecated. Use the superseding command GraphTheory[CopyGraph] instead.
This procedure returns a graph with properties identical to those of G.
It is normally loaded via the command with(networks) but may also be referenced using the full name networks[duplicate](...).
with⁡networks:
G≔complete⁡4:
H≔duplicate⁡G:
H2≔G:
map⁡getlabel,G,H,H2
1,2,1
Changing H will not affect G however changing H2 will.
See Also
GraphTheory
GraphTheory[CopyGraph]
networks(deprecated)[complement]
with
Download Help Document