[−][src]Struct rs_graph::linkedlistgraph::LinkedListGraph
The linked list based graph data structure.
Methods
impl<ID, N, E> LinkedListGraph<ID, N, E> where
ID: PrimInt + Unsigned,
[src]
ID: PrimInt + Unsigned,
pub fn new() -> LinkedListGraph<ID, N, E>
[src]
Trait Implementations
impl<ID, N, E> Buildable for LinkedListGraph<ID, N, E> where
ID: PrimInt + Unsigned,
N: Default,
E: Default,
[src]
ID: PrimInt + Unsigned,
N: Default,
E: Default,
type Builder = LinkedListGraphBuilder<ID, N, E>
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<ID, N, E> Default for LinkedListGraph<ID, N, E> where
ID: PrimInt + Unsigned,
[src]
ID: PrimInt + Unsigned,
impl<'de, ID, N, E> Deserialize<'de> for LinkedListGraph<ID, N, E> where
ID: Deserialize<'de>,
N: Deserialize<'de>,
E: Deserialize<'de>,
[src]
ID: Deserialize<'de>,
N: Deserialize<'de>,
E: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a, ID, N: 'a, E: 'a> Directed<'a> for LinkedListGraph<ID, N, E> where
ID: 'a + PrimInt + Unsigned,
[src]
ID: 'a + PrimInt + Unsigned,
type OutEdgeIter = OutEdgeIter<'a, ID, E>
Type of an iterator over the forward edges leaving a node.
type InEdgeIter = NeighIter<'a, ID, E>
Type of an iterator over the backward edges entering a node.
type IncidentIter = NeighIter<'a, ID, E>
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 outedges(&'a self, u: Self::Node) -> Self::OutEdgeIter
[src]
fn inedges(&'a self, u: Self::Node) -> Self::InEdgeIter
[src]
fn incident_edges(&'a self, u: Self::Node) -> Self::IncidentIter
[src]
fn outgoing(&'a self) -> OutEdges<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn incoming(&'a self) -> InEdges<'a, Self> where
Self: Sized,
[src]
Self: Sized,
impl<'a, ID, N: 'a, E: 'a> EdgeAttributes<'a, LinkedListGraph<ID, N, E>, E> for LinkedListGraph<ID, N, E> where
ID: 'a + PrimInt + Unsigned,
[src]
ID: 'a + PrimInt + Unsigned,
impl<'a, ID, N, E> GraphSize<'a> for LinkedListGraph<ID, N, E> where
ID: 'a + PrimInt + Unsigned,
[src]
ID: 'a + PrimInt + Unsigned,
type NodeIter = NodeIter<ID>
Type of an iterator over all nodes.
type EdgeIter = EdgeIter<ID>
Type of an iterator over all edges.
fn num_nodes(&self) -> usize
[src]
fn num_edges(&self) -> usize
[src]
fn nodes(&'a self) -> Self::NodeIter
[src]
fn edges(&self) -> Self::EdgeIter
[src]
impl<'a, ID, N, E> GraphType<'a> for LinkedListGraph<ID, N, E> where
ID: 'a + PrimInt + Unsigned,
[src]
ID: 'a + PrimInt + Unsigned,
impl<'a, ID, N: 'a, E: 'a> IndexGraph<'a> for LinkedListGraph<ID, N, E> where
ID: 'a + PrimInt + Unsigned,
[src]
ID: 'a + PrimInt + Unsigned,
fn node_id(&self, u: Self::Node) -> usize
[src]
fn id2node(&self, id: usize) -> Self::Node
[src]
fn edge_id(&self, e: Self::Edge) -> usize
[src]
fn id2edge(&self, id: usize) -> Self::Edge
[src]
impl<'a, ID, N: 'a, E: 'a> NodeAttributes<'a, LinkedListGraph<ID, N, E>, N> for LinkedListGraph<ID, N, E> where
ID: 'a + PrimInt + Unsigned,
[src]
ID: 'a + PrimInt + Unsigned,
impl<ID, N, E> Serialize for LinkedListGraph<ID, N, E> where
ID: Serialize,
N: Serialize,
E: Serialize,
[src]
ID: Serialize,
N: Serialize,
E: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a, ID, N: 'a, E: 'a> Undirected<'a> for LinkedListGraph<ID, N, E> where
ID: 'a + PrimInt + Unsigned,
[src]
ID: 'a + PrimInt + Unsigned,
Auto Trait Implementations
impl<ID, N, E> RefUnwindSafe for LinkedListGraph<ID, N, E> where
E: RefUnwindSafe,
ID: RefUnwindSafe,
N: RefUnwindSafe,
E: RefUnwindSafe,
ID: RefUnwindSafe,
N: RefUnwindSafe,
impl<ID, N, E> Send for LinkedListGraph<ID, N, E> where
E: Send,
ID: Send,
N: Send,
E: Send,
ID: Send,
N: Send,
impl<ID, N, E> Sync for LinkedListGraph<ID, N, E> where
E: Sync,
ID: Sync,
N: Sync,
E: Sync,
ID: Sync,
N: Sync,
impl<ID, N, E> Unpin for LinkedListGraph<ID, N, E> where
E: Unpin,
ID: Unpin,
N: Unpin,
E: Unpin,
ID: Unpin,
N: Unpin,
impl<ID, N, E> UnwindSafe for LinkedListGraph<ID, N, E> where
E: UnwindSafe,
ID: UnwindSafe,
N: UnwindSafe,
E: UnwindSafe,
ID: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<'a, G> Digraph<'a> for G where
G: GraphSize<'a> + Directed<'a>,
[src]
G: GraphSize<'a> + Directed<'a>,
impl<T> From<T> for T
[src]
impl<'a, G> Graph<'a> for G where
G: GraphSize<'a> + Undirected<'a>,
[src]
G: GraphSize<'a> + Undirected<'a>,
impl<'a, T> IndexDigraph<'a> for T where
T: IndexGraph<'a> + Digraph<'a>,
[src]
T: IndexGraph<'a> + Digraph<'a>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, G> NumberedDigraph<'a> for G where
G: Digraph<'a> + NumberedGraph<'a>,
<G as GraphType<'a>>::Node: Indexable,
<G as GraphType<'a>>::Edge: Indexable,
[src]
G: Digraph<'a> + NumberedGraph<'a>,
<G as GraphType<'a>>::Node: Indexable,
<G as GraphType<'a>>::Edge: Indexable,
impl<'a, G> NumberedGraph<'a> for G where
G: Graph<'a>,
<G as GraphType<'a>>::Node: Indexable,
<G as GraphType<'a>>::Edge: Indexable,
[src]
G: Graph<'a>,
<G as GraphType<'a>>::Node: Indexable,
<G as GraphType<'a>>::Edge: Indexable,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,