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

Online Help

All Products    Maple    MapleSim


GraphTheory

Maple 2019 enhances the GraphTheory package with new functions, including:

• 

FindVertexCover, MinimumVertexCover

• 

FindHamiltonianCycle, FindHamiltonianPath

• 

GreedyClique, GreedyIndependentSet

• 

IsStronglyRegular

• 

IsTriangleFree

• 

TransitiveReduction

• 

BarabasiAlbertGraph

• 

WattsStrogatzGraph

The SpecialGraphs subpackage also includes commands for eleven new graphs and many new options for customizing the visualizations of graphs have been added to the DrawGraph command.

 

 

Examples

New Special Graphs

New Visualization Options

Examples

FindVertexCover

FindVertexCover returns a list of vertices which comprise a vertex cover  in the graph G. The optional parameter size specifies a size for the clique.

(1.1.1)

(1.1.2)

(1.1.3)

MaximumClique

MaximumClique returns a clique of the largest possible size in the specified graph. Maple 2019 includes a new heuristic, method=sat, which transforms the graph into an instance of the Boolean satisfiability problem which it then solves using the Logic[Satisfy] command.
The new default heuristic, method=hybrid, runs the two methods optimal and sat in parallel and returns the result of whichever method finishes first.

(1.2.1)

(1.2.2)

WattsStrogatzGraph

The WattsStrogatzGraph command permits the generation of random graphs with the Watts-Strogatz model, which produces graphs with a number of desirable real-world properties such as short average path lengths and high clustering.

(1.3.1)

 

New Special Graphs

The SpecialGraphs subpackage now includes built-in commands to generate the following special graphs or graph families:

Brinkmann Graph

Cameron Graph

Circulant Graph

Dürer Graph

(2.1)

(2.2)

(2.3)

Friendship Graph

Hall-Janko Graph

Johnson Graph

Livingstone Graph

(2.4)

(2.5)

(2.6)

(2.7)

(2.8)

Suzuki Graph

Sylvester Graph

Tietze Graph

(2.9)

(2.10)

New Visualization Options

The DrawGraph command and various graph highlighting commands have been enhanced with even more new ways to customize graph display. Some of the defaults have changed so that the vertex shape will generally be closer to the size of the vertex label, vertex borders will not overlap, and the size option passed to DrawGraph will be used to make graphs look better at sizes different than the default. As well, the arrows on directed edges are now draw with a more typical solid triangle shape with new stylesheet options to customize the arrow positions and size.

(3.1)

A new vertex shape option is now available as well, the shape can be any string understood by the new command plottools:-polygonbyname.

There is a new option to control the amount of padding (measured in font points) around vertex labels.  This is useful if the automatically selected size of the vertex shape is too large or too small.

There is a new option to set the line style of graph edges.  Any linestyle from plot/options is supported.

In cases where the graph has many vertices, labels are turned off by default but plot annotations are added so that you can see the labels when you hover the mouse pointer over a vertex.

(3.2)

The DrawGraph tree style can now be used on graphs that are not trees. This is implemented by choosing a vertex layout based on the SpanningTree starting at a specified root.


Download Help Document