pub struct TopologyGraph {
pub nodes: HashMap<String, Node>,
pub edges: Vec<Edge>,
pub topological_order: Vec<String>,
pub reverse_topological_order: Vec<String>,
}
Expand description
Complete topology graph representation
Fields§
§nodes: HashMap<String, Node>
All nodes in the topology
edges: Vec<Edge>
All edges in the topology
topological_order: Vec<String>
Topologically sorted order of nodes
reverse_topological_order: Vec<String>
Reverse topological order (dependencies first)
Implementations§
Source§impl TopologyGraph
impl TopologyGraph
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Get the number of nodes
Sourcepub fn edge_count(&self) -> usize
pub fn edge_count(&self) -> usize
Get the number of edges
Trait Implementations§
Source§impl Clone for TopologyGraph
impl Clone for TopologyGraph
Source§fn clone(&self) -> TopologyGraph
fn clone(&self) -> TopologyGraph
Returns a duplicate of the value. Read more
1.0.0 · 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 TopologyGraph
impl Debug for TopologyGraph
Source§impl<'de> Deserialize<'de> for TopologyGraph
impl<'de> Deserialize<'de> for TopologyGraph
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 TopologyGraph
impl RefUnwindSafe for TopologyGraph
impl Send for TopologyGraph
impl Sync for TopologyGraph
impl Unpin for TopologyGraph
impl UnwindSafe for TopologyGraph
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