1111# ! @Chapter
1212# ! @ChapterTitle An introduction to the DOT language and Graphviz.
1313# ! This chapter explains what the DOT and graphviz are,
14- # ! key basic concepts relating to them, and how this package interacts with them.
14+ # ! key basic concepts relating to them, and how this package interacts with
15+ # ! them.
1516
1617# ! @Section A Brief Introduction
1718# ! DOT is a language for descrbing to a computer how to display a visualization
@@ -63,7 +64,8 @@ DeclareOperation("GraphvizGraph", []);
6364# ! @GroupTitle Constructors for Digraphs
6465# ! @Arguments name
6566# ! @Returns a new graphviz digraph
66- # ! @Description Creates a new graphviz digraph optionally with the provided name.
67+ # ! @Description Creates a new graphviz digraph optionally with the provided
68+ # ! name.
6769DeclareOperation(" GraphvizDigraph" , [ IsObject] );
6870DeclareOperation(" GraphvizDigraph" , [] );
6971# ! @EndGroup
@@ -147,13 +149,15 @@ DeclareOperation("GraphvizTail", [IsGraphvizEdge]);
147149# ! @Arguments graph, name
148150# ! @Returns the modified graph.
149151# ! @Description Sets the name of a graphviz graph or digraph.
150- DeclareOperation(" GraphvizSetName" , [ IsGraphvizGraphDigraphOrContext, IsObject] );
152+ DeclareOperation(" GraphvizSetName" ,
153+ [ IsGraphvizGraphDigraphOrContext, IsObject] );
151154
152155# ! @Arguments graph, node
153156# ! @Returns the modified graph.
154157# ! @Description Adds a node to the graph.
155158# ! If a node with the same name is already present the operation fails.
156- DeclareOperation(" GraphvizAddNode" , [ IsGraphvizGraphDigraphOrContext, IsObject] );
159+ DeclareOperation(" GraphvizAddNode" ,
160+ [ IsGraphvizGraphDigraphOrContext, IsObject] );
157161
158162# ! @Arguments graph, edge
159163# ! @Returns the modified graph.
@@ -180,6 +184,9 @@ DeclareOperation("GraphvizAddContext",
180184[ IsGraphvizGraphDigraphOrContext, IsObject] );
181185DeclareOperation(" GraphvizAddContext" , [ IsGraphvizGraphDigraphOrContext] );
182186
187+ DeclareOperation(" GraphvizAddComment" ,
188+ [ IsGraphvizGraphDigraphOrContext, IsString] );
189+
183190# ! @Arguments graph, node
184191# ! @Returns the modified graph.
185192# ! @Description Removes the node from the graph.
0 commit comments