Struct rs_graph::vecgraph::VecGraph [−][src]
pub struct VecGraph<ID = u32> { /* fields omitted */ }
A vector based graph data structure.
Implementations
Trait Implementations
impl<ID> Buildable for VecGraph<ID> where
ID: PrimInt + Unsigned,
[src]
impl<ID> Buildable for VecGraph<ID> where
ID: PrimInt + Unsigned,
[src]type Builder = VecGraphBuilder<ID>
fn new_builder() -> Self::Builder
[src]
fn new_with<F>(f: F) -> Self where
F: FnOnce(&mut Self::Builder),
[src]
F: FnOnce(&mut Self::Builder),
impl<'de, ID> Deserialize<'de> for VecGraph<ID> where
ID: Deserialize<'de>,
[src]
impl<'de, ID> Deserialize<'de> for VecGraph<ID> where
ID: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a, ID> Directed<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]
impl<'a, ID> Directed<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]type OutIt = NeighIt<'a, ID>
Type of a graph iterator over edges leaving a node.
type InIt = NeighIt<'a, ID>
Type of a graph iterator over edges entering a node.
type IncidentIt = NeighIt<'a, ID>
Type of an iterator over all incident edges.
type DirectedEdge = Self::Edge
Type of a directed edge.
fn src(&self, e: Self::Edge) -> Self::Node
[src]
fn snk(&self, e: Self::Edge) -> Self::Node
[src]
fn out_iter(&'a self, u: Self::Node) -> Self::OutIt
[src]
fn in_iter(&'a self, u: Self::Node) -> Self::InIt
[src]
fn incident_iter(&'a self, u: Self::Node) -> Self::IncidentIt
[src]
fn outedges(&'a self, u: Self::Node) -> GraphIter<'a, Self, Self::OutIt>ⓘ where
Self: Sized,
[src]
Self: Sized,
fn outgoing(&'a self) -> OutEdges<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn inedges(&'a self, u: Self::Node) -> GraphIter<'a, Self, Self::InIt>ⓘ where
Self: Sized,
[src]
Self: Sized,
fn incoming(&'a self) -> InEdges<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn incident_edges(
&'a self,
u: Self::Node
) -> GraphIter<'a, Self, Self::IncidentIt>ⓘ where
Self: Sized,
[src]
&'a self,
u: Self::Node
) -> GraphIter<'a, Self, Self::IncidentIt>ⓘ where
Self: Sized,
impl<'a, ID> GraphIterator<VecGraph<ID>> for NodeIt<ID> where
ID: 'a + PrimInt + Unsigned,
[src]
impl<'a, ID> GraphIterator<VecGraph<ID>> for NodeIt<ID> where
ID: 'a + PrimInt + Unsigned,
[src]impl<'a, ID> GraphIterator<VecGraph<ID>> for EdgeIt<ID> where
ID: 'a + PrimInt + Unsigned,
[src]
impl<'a, ID> GraphIterator<VecGraph<ID>> for EdgeIt<ID> where
ID: 'a + PrimInt + Unsigned,
[src]impl<'a, ID> GraphIterator<VecGraph<ID>> for NeighIt<'a, ID> where
ID: 'a + PrimInt + Unsigned,
[src]
impl<'a, ID> GraphIterator<VecGraph<ID>> for NeighIt<'a, ID> where
ID: 'a + PrimInt + Unsigned,
[src]impl<'a, ID> GraphSize<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]
impl<'a, ID> GraphSize<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]type NodeIt = NodeIt<ID>
Type of an iterator over all nodes.
type EdgeIt = EdgeIt<ID>
Type of an iterator over all edges.
fn num_nodes(&self) -> usize
[src]
fn num_edges(&self) -> usize
[src]
fn nodes_iter(&self) -> Self::NodeIt
[src]
fn edges_iter(&self) -> Self::EdgeIt
[src]
fn nodes(&'a self) -> NodeIterator<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn edges(&'a self) -> EdgeIterator<'a, Self> where
Self: Sized,
[src]
Self: Sized,
impl<'a, ID> IndexGraph<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]
impl<'a, ID> IndexGraph<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]impl<'a, ID> Undirected<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]
impl<'a, ID> Undirected<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]type NeighIt = NeighIt<'a, ID>
Type of a graph iterator over all incident edges.
fn enodes(&self, e: Self::Edge) -> (Self::Node, Self::Node)
[src]
fn neigh_iter(&'a self, u: Self::Node) -> Self::NeighIt
[src]
fn neighs(&'a self, u: Self::Node) -> GraphIter<'a, Self, Self::NeighIt>ⓘ where
Self: Sized,
[src]
Self: Sized,
fn neighbors(&'a self) -> Neighbors<'a, Self> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl<ID> RefUnwindSafe for VecGraph<ID> where
ID: RefUnwindSafe,
impl<ID> RefUnwindSafe for VecGraph<ID> where
ID: RefUnwindSafe,
impl<ID> UnwindSafe for VecGraph<ID> where
ID: UnwindSafe,
impl<ID> UnwindSafe for VecGraph<ID> where
ID: UnwindSafe,
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<'a, G> Graph<'a> for G where
G: GraphSize<'a> + Undirected<'a>,
[src]
impl<'a, G> Graph<'a> for G where
G: GraphSize<'a> + Undirected<'a>,
[src]impl<'a, T> IndexDigraph<'a> for T where
T: IndexGraph<'a> + Digraph<'a>,
[src]
impl<'a, T> IndexDigraph<'a> for T where
T: IndexGraph<'a> + Digraph<'a>,
[src]