summaryrefslogtreecommitdiff
path: root/src/attributes/ordering.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/attributes/ordering.rs')
-rw-r--r--src/attributes/ordering.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/attributes/ordering.rs b/src/attributes/ordering.rs
index 1cd13b6..27037de 100644
--- a/src/attributes/ordering.rs
+++ b/src/attributes/ordering.rs
@@ -1,6 +1,16 @@
use crate::dot::DotString;
use std::borrow::Cow;
+/// If out, then the outedges of a node, that is, edges with the node as its tail node,
+/// must appear left-to-right in the same order in which they are defined in the input.
+///
+/// If in, then the inedges of a node must appear left-to-right in the same order in which they are
+/// defined in the input.
+///
+/// If defined as a graph or subgraph attribute, the value is applied to all nodes in the graph
+/// or subgraph.
+///
+/// Note that the graph attribute takes precedence over the node attribute.
pub enum Ordering {
In,
Out,