CopyGraph - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


GraphTheory

  

CopyGraph

  

copy graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

CopyGraph(G)

Parameters

G

-

graph

Description

• 

CopyGraph(G) creates a copy of the graph G.

Examples

withGraphTheory:

GCycleGraph5

GGraph 1: an undirected graph with 5 vertices and 5 edge(s)

(1)

HCopyGraphG

HGraph 2: an undirected graph with 5 vertices and 5 edge(s)

(2)

AddEdgeH,1,3,1,4

Graph 2: an undirected graph with 5 vertices and 7 edge(s)

(3)

EdgesG

1,2,1,5,2,3,3,4,4,5

(4)

EdgesH

1,2,1,3,1,4,1,5,2,3,3,4,4,5

(5)

SetVertexAttributeH,2,tag=vertex

(6)

GetVertexAttributeH,2,tag

vertex

(7)

GetVertexAttributeG,2,tag

FAIL

(8)

See Also

AddEdge

Edges

Graph

GraphAttributes