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

Online Help

GraphTheory

A substantial effort was put into Graph Theory for Maple 2024, including new commands for graph computation and generation.

 

New commands

New functionality for existing commands

Additions to SpecialGraphs

New commands

These commands are new for Maple 2024:

AllGraphs

Condensation

FindAsteroidalTriple

IsArchimedeanGraph

IsAsteroidalTripleFree

IsDominatingSet

IsIndependentSet

MinCut

MoralGraph

RelationGraph

WienerIndex

 

AllGraphs

The new AllGraphs command returns an iterator with which one can step through all graphs matching a particular set of criteria, such as vertex count or edge count. It is also possible to cause the Iterator to return only connected graphs or only graphs which are not isomorphic to a graph previously returned by this Iterator.

(1.1.1)

(1.1.2)

(1.1.3)

(1.1.4)

Condensation

The new command Condensation computes the condensation of a given (directed) graph.

The condensation of a graph G is a graph C whose vertices correspond to the strongly connected components of G.  The condensation C will have an arc from u to v whenever there is an arc from the strongly connected component of G corresponding to u to the strongly connected component of G corresponding to v.

(1.2.1)

(1.2.2)

(1.2.3)

FindAsteroidalTriple and IsAsteroidalTripleFree

The new command FindAsteriodalTriple searches for an asteroidal triple in the given graph.  The related new command IsAsteroidalTripleFree returns true when the given graph does not contain an asteroidal triple.

An asteroidal triple for a graph G is a triple  of non-adjacent vertices of G such that for each pair from the triple, there exists a path between them that does not intersect the third vertex or any of its neighbors.

(1.3.1)

(1.3.2)

IsArchimedeanGraph

The new command IsArchimedeanGraph tests whether a given graph is an Archimedean graph.

The Archimedean graphs are those graphs which form the skeletons of the Archimedean solids. The Archimedean solids comprise 13 convex polyhedra whose faces are regular polygons and whose vertices are all symmetric to each other, but which are not Platonic solids (polyhedra whose faces are identical).  

(1.4.1)

IsDominatingSet

The new command IsDominatingSet tests whether a set is a dominating set for a given graph.

A dominating set of a graph G is a subset S of the vertices of G, with the condition that every vertex in G must either be an element of S or the neighbor of an element of S.

(1.5.1)

(1.5.2)

(1.5.3)

MinCut

The new MinCut command works per the Max-Flow Min-Cut Theorem and uses the flow output to compute a cut-set. The EdgeConnectivity and VertexConnectivity commands have been updated to use MinCut so that they can now also return cut-sets.

(1.6.1)

(1.6.2)

The MinCut command will call MaxFlow by default but can reuse the flow matrix if MaxFlow has been called already.

(1.6.3)

(1.6.4)

(1.6.5)

MoralGraph

The moral graph of a directed graph G is a graph M with the same vertices as G but with all directed edges made undirected, and with the property that whenever two directed edges in G share a destination vertex, then their source vertices are connected in M.

The new command MoralGraph constructs the moral graph given a directed graph.

(1.7.1)

(1.7.2)

(1.7.3)

(1.7.4)

RelationGraph

The RelationGraph command constructs a graph on a given vertex list in which an edge is present in the graph whenever a particular Boolean predicate on its two vertices is true.

(1.8.1)

In this example, the neighborhood of the element 5 will be all those vertices whose values are coprime with 5:

(1.8.2)

WienerIndex

The WienerIndex command computes the Wiener index on a given graph. The Wiener index of a graph is the sum of the lengths of the shortest paths between all pairs of vertices in the graph.

(1.9.1)

(1.9.2)

New functionality for existing commands

Distance and ShortestPath

The Distance and ShortestPath commands now use the edge weights of a weighted matrix. They both have a new option ignoreweights to compute the distance or shortest path in the underlying unweighted graph.

(2.1.1)

(2.1.2)

(2.1.3)

(2.1.4)

(2.1.5)

MaxFlow

The MaxFlow command now works on all graphs.  It now treats an unweighted graph as a graph with all edge weights equal to 1, or to the edge multiplicity for multigraphs.

Additions to SpecialGraphs

The SpecialGraphs subpackage now includes commands for all the Archimedean graphs, as well as the Möbius ladder graph and the Wagner graph.

Archimedean Graphs

The Archimedean graphs are those graphs which form the skeletons of the Archimedean solids.  The Archimedean solids comprise 13 convex polyhedra whose faces are regular polygons and whose vertices are all symmetric to each other, but which are not Platonic solids (polyhedra whose faces are identical). They were first enumerated by Archimedes.

The new command IsArchimedeanGraph tests whether a given graph is an Archimedean graph.

The following new commands generate each of the Archimedean graphs.

Archimedean solid

Degree

Vertices

Edges

Command

2-D

3-D

truncated tetrahedon

3

12

18

(3.1.1)

cuboctahedron

4

12

24

(3.1.2)

(3.1.3)

truncated cube

3

24

36

(3.1.4)

truncated octahedron

3

24

36

(3.1.5)

small rhombicuboctahedron

4

24

48

(3.1.6)

great rhombicuboctahedron
(also called truncated cuboctahedron)

3

48

72

(3.1.7)

snub cube

5

24

60

(3.1.8)

Icosidodecahedron

4

30

60

(3.1.9)

truncated dodecahedron

3

60

90

(3.1.10)

truncated icosahedron

3

60

90

(3.1.11)

small rhombicosidodecahedron

4

60

120

(3.1.12)

great rhombicosidodecahedron
(also called truncated icosidodecahedron)

3

120

180

(3.1.13)

snub dodecahedron

5

60

150

(3.1.14)

Möbius ladder graph and Wagner graph

The Möbius ladder graph on  vertices may be understood visually as the ladder graph on the same vertices, with the addition of two edges: one connecting the left-hand side of the "op rung to the right-hand side of the bottom rung, and one connecting the right-hand side of the top rung to the left-hand side of the bottom rung.

(3.2.1)

The Wagner graph is a 3-regular graph which is a particular instance of an Möbius ladder graph on 8 vertices.

(3.2.2)

 


Download Help Document