GraphTheory - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Discrete Mathematics : Graph Theory : GraphTheory Package : GraphTheory/CopyGraph

GraphTheory

  

CopyGraph

 

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

G:=Graph 1: an undirected unweighted graph with 5 vertices and 5 edge(s)

(1)

HCopyGraphG

H:=Graph 2: an undirected unweighted graph with 5 vertices and 5 edge(s)

(2)

AddEdgeH,1,3,1,4

Graph 2: an undirected unweighted 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

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam