[][src]Struct lib_dachshund::dachshund::typed_graph::TypedGraph

pub struct TypedGraph {
    pub nodes: HashMap<NodeId, Node>,
    pub core_ids: Vec<NodeId>,
    pub non_core_ids: Vec<NodeId>,
}

Keeps track of a bipartite graph composed of "core" and "non-core" nodes. Only core -> non-core connections may exist in the graph. The neighbors of core nodes are non-cores, the neighbors of non-core nodes are cores. Graph edges are stored in the neighbors field of each node. If the id of a node is known, its Node object can be retrieved via the nodes HashMap. To iterate over core and non-core nodes, the struct also provides the core_ids and non_core_ids vectors.

Fields

nodes: HashMap<NodeId, Node>core_ids: Vec<NodeId>non_core_ids: Vec<NodeId>

Trait Implementations

impl GraphBase for TypedGraph[src]

impl GraphBuilder<TypedGraph> for TypedGraphBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,