pub struct Graph {Show 15 fields
pub name: String,
pub strict: bool,
pub kind: GraphKind,
pub graph_attrs: BTreeMap<String, String>,
pub node_defaults: BTreeMap<String, String>,
pub edge_defaults: BTreeMap<String, String>,
pub nodes: Vec<NodeData>,
pub node_lookup: BTreeMap<String, NodeId>,
pub edges: Vec<EdgeData>,
pub subgraphs: Vec<SubgraphData>,
pub bb: BoundingBox,
pub html_strings: BTreeSet<String>,
pub anon_subgraph_ids: BTreeMap<u32, u64>,
pub dicts: Vec<AttrDicts>,
pub render_view: Option<Box<Graph>>,
}Expand description
Arena-backed Graph representation (Fixes GV-BUG-008 and GV-BUG-010).
Fields§
§name: String§strict: bool§kind: GraphKind§graph_attrs: BTreeMap<String, String>§node_defaults: BTreeMap<String, String>§edge_defaults: BTreeMap<String, String>§nodes: Vec<NodeData>§node_lookup: BTreeMap<String, NodeId>§edges: Vec<EdgeData>§subgraphs: Vec<SubgraphData>§bb: BoundingBox§html_strings: BTreeSet<String>Attribute values that were written as HTML strings (<...>) in the source, stored with
their delimiters. A quoted "<x>" is a plain string and is not recorded here.
anon_subgraph_ids: BTreeMap<u32, u64>cgraph’s internal ids of anonymous subgraphs (subgraph index -> id); the root graph,
anonymous subgraphs and edges draw odd ids from one counter in creation order. C
prints an anonymous subgraph’s name as %<id>.
dicts: Vec<AttrDicts>cgraph attribute dictionaries (Agdatadict_t) as built while parsing: index 0 is the
root graph, index i + 1 subgraph i. Writers that reproduce agwrite use them to
tell local declarations from inherited values.
render_view: Option<Box<Graph>>The graph as renderers that run before undoClusterEdges see it: fdp leaves its
cluster nodes (__0:cluster) and cloned cluster edges in the graph it lays out, and
only the output writers (dot, xdot, json, canon, plain) undo them. -Tsvg draws this
graph when it is set.