From 4eb06140d996b1a5a6ac15578089ef9f61f95663 Mon Sep 17 00:00:00 2001 From: seancarroll Date: Thu, 7 Jan 2021 22:47:41 -0600 Subject: adding rustdocs --- src/attributes/ordering.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/attributes/ordering.rs') 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, -- cgit v1.2.3