Skip to content

Commit

Permalink
final edits to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mpan322 committed Jun 26, 2024
1 parent bb1f279 commit 12978bb
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions gap/dot.gd
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ DeclareOperation("GraphvizDigraph", []);
#! objects.

#! @Subsection For all graphviz objects.
#! This section covers the operations for getting information about any graphviz
#! object.
#! Operations below are applicable to all graphviz
#! objects.

#! @Arguments obj
#! @Returns the name of the provided graphviz object
Expand All @@ -87,8 +87,8 @@ DeclareOperation("GraphvizName", [IsGraphvizObject]);
DeclareOperation("GraphvizAttrs", [IsGraphvizObject]);

#! @Subsection For only graphs, digraphs and contexts.
#! This section covers the operations for getting information about graphviz
#! graphs, digraphs and contexts.
#! This section covers the operations for getting information
#! specific to graphviz graphs, digraphs and contexts.

#! @Arguments graph
#! @Returns the nodes of the provided graphviz graph
Expand All @@ -101,13 +101,16 @@ DeclareOperation("GraphvizNodes", [IsGraphvizGraphDigraphOrContext]);
#! @Arguments graph
#! @Returns the subgraphs of the provided graphviz graph.
#! @Description gets the subgraphs of a provided graphviz graph.
#! Subgraphs are returned as a mapping from subgraph name to object.
#! Subgraphs are returned as a mapping from subgraph names to
#! corresponding objects.
DeclareOperation("GraphvizSubgraphs", [IsGraphvizGraphDigraphOrContext]);

#! @Arguments graph
#! @Returns the contexts of the provided graphviz graph, digraph or context.
#! @Description gets the contexts of a provided graphviz graph, digraph
#! or context.
#! Subgraphs are returned as a mapping from context names to
#! corresponding objects.
DeclareOperation("GraphvizContexts", [IsGraphvizGraphDigraphOrContext]);

#! @Arguments graph, name
Expand Down Expand Up @@ -152,6 +155,7 @@ DeclareOperation("GraphvizTail", [IsGraphvizEdge]);
#! This section covers operations for modifying graphviz objects.

#! @Subsection For modifying graphs.
#! Operations below only pertain to graphs, digraphs and contexts.

#! @Arguments graph, name
#! @Returns the modified graph.
Expand Down Expand Up @@ -180,8 +184,6 @@ DeclareOperation("GraphvizAddNode", [IsGraphvizGraphDigraphOrContext, IsObject])
#! If no nodes with the same id are in the (di)graph, nodes automatically will be
#! added to the graph.
#! If there are nodes with the same id, they will be used.
#! TODO: are we happy with this behaviour?
#! I think if fail if they have the same id but different objects.
DeclareOperation("GraphvizAddEdge",
[IsGraphvizGraphDigraphOrContext, IsObject, IsObject]);

Expand All @@ -190,7 +192,9 @@ DeclareOperation("GraphvizAddEdge",
#! @Arguments graph, name
#! @Returns the new subgraph.
#! @Description Adds a subgraph to a graph.
#! The type of graph (graph or digraph) will be the same as the parent graph.
#! The type of structure (graph or digraph) will be the same as the parent graph.
#! At the moment it is not possible to add an existing graph as a
#! subgraph of another graph.
DeclareOperation("GraphvizAddSubgraph",
[IsGraphvizGraphDigraphOrContext, IsObject]);
#! @Arguments graph
Expand All @@ -211,6 +215,8 @@ DeclareOperation("GraphvizAddSubgraph", [IsGraphvizGraphDigraphOrContext]);
#! without modifying the rendering behaviour.
#! The type of graph edge (directed or undirected)
#! will be the same as the parent graph.
#! At the moment it is not possible to add an existing context to
#! a new graph.
DeclareOperation("GraphvizAddContext",
[IsGraphvizGraphDigraphOrContext, IsObject]);
#! @Arguments graph
Expand Down

0 comments on commit 12978bb

Please sign in to comment.