GraphTheory
CopyGraph
copy graph
Calling Sequence
Parameters
Description
Examples
CopyGraph(G)
G
-
graph
CopyGraph(G) creates a copy of the graph G.
with⁡GraphTheory:
G≔CycleGraph⁡5
G≔Graph 1: an undirected graph with 5 vertices and 5 edge(s)
H≔CopyGraph⁡G
H≔Graph 2: an undirected graph with 5 vertices and 5 edge(s)
AddEdge⁡H,1,3,1,4
Graph 2: an undirected graph with 5 vertices and 7 edge(s)
Edges⁡G
1,2,1,5,2,3,3,4,4,5
Edges⁡H
1,2,1,3,1,4,1,5,2,3,3,4,4,5
SetVertexAttribute⁡H,2,tag=vertex
GetVertexAttribute⁡H,2,tag
vertex
GetVertexAttribute⁡G,2,tag
FAIL
See Also
AddEdge
Edges
Graph
GraphAttributes
Download Help Document