[−][src]Struct graphrepresentations::simplegraph::SimpleGraph
A simple graph representation that is inefficient to use, but cheap to construct.
For actual usage, the graph should be converted into a different representation.
Trait Implementations
impl<N, E> Graph<N, E> for SimpleGraph<N, E>
[src]
type NodeIdIterator = SimpleGraphNodeIdIterator
An iterator over all node ids of a graph.
type EdgeIdIterator = SimpleGraphEdgeIdIterator
An iterator over all edge ids of a graph.
fn node_len(&self) -> IdType
[src]
fn edge_len(&self) -> IdType
[src]
fn node_id_iter(&self) -> Self::NodeIdIterator
[src]
fn edge_id_iter(&self) -> Self::EdgeIdIterator
[src]
fn node_data(&self, id: NodeId) -> &N
[src]
fn edge_data(&self, id: EdgeId) -> &E
[src]
fn edge(&self, id: EdgeId) -> EdgeRef<E>
[src]
fn edge_start(&self, id: EdgeId) -> NodeId
[src]
fn edge_end(&self, id: EdgeId) -> NodeId
[src]
fn is_node_id_valid(&self, id: NodeId) -> bool
[src]
fn is_edge_id_valid(&self, id: EdgeId) -> bool
[src]
impl<N, E> MutableGraph<N, E> for SimpleGraph<N, E>
[src]
fn new() -> Self
[src]
fn add_node(&mut self, node: Node<N>) -> NodeId
[src]
fn add_edge(&mut self, edge: Edge<E>) -> Result<EdgeId, GraphModificationError>
[src]
impl<'_, N: Clone, E: Default + Clone> From<&'_ SimpleGraph<N, E>> for AdjacencyArray<N, E>
[src]
fn from(source: &SimpleGraph<N, E>) -> Self
[src]
impl<'_, N: Clone, E: Clone> From<&'_ AdjacencyArray<N, E>> for SimpleGraph<N, E>
[src]
fn from(source: &AdjacencyArray<N, E>) -> Self
[src]
impl<N, E> Default for SimpleGraph<N, E>
[src]
impl<N: Debug, E: Debug> Debug for SimpleGraph<N, E>
[src]
Auto Trait Implementations
impl<N, E> Send for SimpleGraph<N, E> where
E: Send,
N: Send,
E: Send,
N: Send,
impl<N, E> Unpin for SimpleGraph<N, E> where
E: Unpin,
N: Unpin,
E: Unpin,
N: Unpin,
impl<N, E> Sync for SimpleGraph<N, E> where
E: Sync,
N: Sync,
E: Sync,
N: Sync,
impl<N, E> UnwindSafe for SimpleGraph<N, E> where
E: UnwindSafe,
N: UnwindSafe,
E: UnwindSafe,
N: UnwindSafe,
impl<N, E> RefUnwindSafe for SimpleGraph<N, E> where
E: RefUnwindSafe,
N: RefUnwindSafe,
E: RefUnwindSafe,
N: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,