networks(deprecated)/duplicate - Maple Help

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

networks

 duplicate
 copy a graph

 Calling Sequence duplicate(G)

Parameters

 G - graph or network

Description

 • 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](...).

Examples

Important: The networks package has been deprecated.  Use the superseding command GraphTheory[CopyGraph] instead.

 > $\mathrm{with}\left(\mathrm{networks}\right):$
 > $G≔\mathrm{complete}\left(4\right):$
 > $H≔\mathrm{duplicate}\left(G\right):$
 > $\mathrm{H2}≔G:$
 > $\mathrm{map}\left(\mathrm{getlabel},\left[G,H,\mathrm{H2}\right]\right)$
 $\left[{1}{,}{2}{,}{1}\right]$ (1)

Changing H will not affect G however changing H2 will.