From: Emden R. Gansner Date: Thu, 4 Sep 2014 21:05:28 +0000 (-0400) Subject: Note the use of subgraphs in edge statements X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae22e58732f5d578ac8e5635c2ad85e1e6470f5a;p=graphviz Note the use of subgraphs in edge statements --- diff --git a/doc/info/lang.html b/doc/info/lang.html index c0c6e1d78..cfb1abf73 100644 --- a/doc/info/lang.html +++ b/doc/info/lang.html @@ -160,6 +160,18 @@ Subgraphs play three roles in Graphviz. First, a subgraph can be used to represent graph structure, indicating that certain nodes and edges should be grouped together. This is the usual role for subgraphs and typically specifies semantic information about the graph components. +It can also provide a convenient shorthand for edges. An edge statement allows +a subgraph on both the left and right sides of the edge operator. +When this occurs, an edge is created from every node on the left to every node +on the right. For example, the specification +
+  A -> {B C}
+
+is equivalent to +
+  A -> B
+  A -> C
+

In the second role, a subgraph can provide a context for setting attributes. For example, a subgraph could specify that blue diff --git a/doc/infosrc/lang.2 b/doc/infosrc/lang.2 index 1d5d79cfe..4b6175c1f 100644 --- a/doc/infosrc/lang.2 +++ b/doc/infosrc/lang.2 @@ -51,6 +51,18 @@ Subgraphs play three roles in Graphviz. First, a subgraph can be used to represent graph structure, indicating that certain nodes and edges should be grouped together. This is the usual role for subgraphs and typically specifies semantic information about the graph components. +It can also provide a convenient shorthand for edges. An edge statement allows +a subgraph on both the left and right sides of the edge operator. +When this occurs, an edge is created from every node on the left to every node +on the right. For example, the specification +

+  A -> {B C}
+
+is equivalent to +
+  A -> B
+  A -> C
+

In the second role, a subgraph can provide a context for setting attributes. For example, a subgraph could specify that blue