GraphTheory
CopyGraph
copy graph
Calling Sequence
Parameters
Description
Examples
CopyGraph(G)
G
-
graph
CopyGraph(G) creates a copy of the graph G.
withGraphTheory:
G≔CycleGraph5
G≔Graph 1: an undirected graph with 5 vertices and 5 edge(s)
H≔CopyGraphG
H≔Graph 2: an undirected graph with 5 vertices and 5 edge(s)
AddEdgeH,1,3,1,4
Graph 2: an undirected graph with 5 vertices and 7 edge(s)
EdgesG
1,2,1,5,2,3,3,4,4,5
EdgesH
1,2,1,3,1,4,1,5,2,3,3,4,4,5
SetVertexAttributeH,2,tag=vertex
GetVertexAttributeH,2,tag
vertex
GetVertexAttributeG,2,tag
FAIL
See Also
AddEdge
Edges
Graph
GraphAttributes
Download Help Document