pub struct LevelGraph {
pub edge_kinds: BTreeMap<String, EdgeKindSpec>,
pub node_attributes: BTreeMap<String, AttributeSpec>,
pub edge_attributes: BTreeMap<String, AttributeSpec>,
pub attribute_groups: BTreeMap<String, AttributeGroup>,
pub node_kinds: BTreeMap<String, NodeKindSpec>,
pub cycle_kinds: BTreeMap<String, CycleKindSpec>,
pub nodes: Vec<Node>,
pub edges: Vec<Edge>,
pub cycles: Vec<CycleGroup>,
pub stats: BTreeMap<String, AttrValue>,
pub ui: LevelUi,
}Expand description
Everything for one analysis level: the structural graph, the semantics dictionaries that describe its vocabulary, and the computed cycles + stats.
Fields§
§edge_kinds: BTreeMap<String, EdgeKindSpec>Edge kinds present at this level (keyed by kind), with flow semantics.
node_attributes: BTreeMap<String, AttributeSpec>Node attribute dictionary (structural keys + appended computed metrics).
edge_attributes: BTreeMap<String, AttributeSpec>Edge attribute dictionary.
attribute_groups: BTreeMap<String, AttributeGroup>Attribute group definitions referenced by AttributeSpec.group.
node_kinds: BTreeMap<String, NodeKindSpec>Node-kind vocabulary (label/colour/external).
cycle_kinds: BTreeMap<String, CycleKindSpec>Cycle-kind vocabulary.
nodes: Vec<Node>§edges: Vec<Edge>§cycles: Vec<CycleGroup>SCCs with ≥ 2 members, classified by kind.
stats: BTreeMap<String, AttrValue>Per-graph averages of numeric node attributes (flat, keyed by attr name).
ui: LevelUiComputed UI hints (column/sort/size/card ordering).
Trait Implementations§
Source§impl Clone for LevelGraph
impl Clone for LevelGraph
Source§fn clone(&self) -> LevelGraph
fn clone(&self) -> LevelGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LevelGraph
impl Debug for LevelGraph
Source§impl Default for LevelGraph
impl Default for LevelGraph
Source§fn default() -> LevelGraph
fn default() -> LevelGraph
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LevelGraph
impl<'de> Deserialize<'de> for LevelGraph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LevelGraph
impl RefUnwindSafe for LevelGraph
impl Send for LevelGraph
impl Sync for LevelGraph
impl Unpin for LevelGraph
impl UnsafeUnpin for LevelGraph
impl UnwindSafe for LevelGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more