ConvertGraph - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


GraphTheory

  

ConvertGraph

  

convert graph to/from various formats

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ConvertGraph(G, fmt)

ConvertGraph(G)

Parameters

G

-

representation of a graph in one of the allowed formats

fmt

-

name of a format

Description

• 

ConvertGraph converts its input graph G to the format fmt. If G is of type GRAPHLN, the second argument is mandatory and must be one of digraph6, graph6, sparse6, or bits. If G is not of type GRAPHLN, the second argument is optional, and can be either of the above formats as well as maple.

• 

The input graph G can be a GraphTheory graph (GRAPHLN), a networks graph, a string whose value is a digraph6, graph6, or sparse6 representation of a graph, or a bits representation of a graph (list of two integers).

Examples

withGraphTheory:

withSpecialGraphs:

d6ConvertGraphPetersenGraph,digraph6

d6&IRA_dGIEPGHHOIcDDG

(1)

g6ConvertGraphPetersenGraph,graph6

g6Ihe@GT@DG

(2)

s6ConvertGraphPetersenGraph,sparse6

s6:I`ES@ocU`gfeTF

(3)

bConvertGraphPetersenGraph,bits

b10,22854075843097

(4)

ConvertGraphg6,sparse6

:I`ES@ocU`gfeTF

(5)

ConvertGraphs6

Graph 1: an undirected graph with 10 vertices and 15 edge(s)

(6)

Compatibility

• 

The GraphTheory[ConvertGraph] command was updated in Maple 2017.

See Also

ExportGraph

ImportGraph