GraphTheory - New Features in Maple 2019 - Maplesoft

# 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

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.

 >

 >

 >

 >

 >

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.

 >

 >

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.

 >

 >

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

 >

 >

 >

 >

 >

 >

Friendship Graph

Hall-Janko Graph

Johnson Graph

Livingstone Graph

 >

 >

 >

 >

 >

 >

 >

Suzuki Graph

Sylvester Graph

Tietze Graph

 >

 >

 >

 >

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.

 >

 >

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.

 >

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.

 >

## Bereit für den nächsten Schritt?

*Die Maple-Evaluation ist für Schüler und Studenten bzw. die private Nutzung zurzeit nicht verfügbar.