‣ DotOrbitalGraph( D ) | ( attribute ) |
Returns: A string
Warning: This function requires version 1.4.0 of the Digraphs package, or newer.
Given an orbital graph D, this function returns a string that contains a description of D in DOT format.
The edge of D corresponding to its BasePair (1.3-1) is coloured red, while the remaining edges are coloured black.
The DOT string for D can then be compiled and displayed with the Splash (Digraphs: Splash) function of the Digraphs package.
See https://en.wikipedia.org/wiki/DOT_(graph_description_language) for more information about this format.
gap> G := Group([(1,2,3)]);; gap> o := OrbitalGraphs(G);; gap> Print(DotOrbitalGraph(o[1])); //dot digraph hgn{ node [shape=circle] 1 [label="1"] 2 [label="2"] 3 [label="3"] 1 -> 2 [color=red] 2 -> 3 3 -> 1 } gap> Splash(DotOrbitalGraph(o[1])); # To visualise
generated by GAPDoc2HTML