Struct graaf::adjacency_list::digraph::Digraph
source · pub struct Digraph { /* private fields */ }Expand description
An adjacency list representation of an unweighted digraph
Trait Implementations§
source§impl ArcsWeighted<usize> for Digraph
impl ArcsWeighted<usize> for Digraph
source§impl Ord for Digraph
impl Ord for Digraph
source§impl OutNeighbors for Digraph
impl OutNeighbors for Digraph
source§impl OutNeighborsWeighted<usize> for Digraph
impl OutNeighborsWeighted<usize> for Digraph
source§impl PartialEq for Digraph
impl PartialEq for Digraph
source§impl PartialOrd for Digraph
impl PartialOrd for Digraph
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Digraph
impl StructuralPartialEq for Digraph
Auto Trait Implementations§
impl Freeze for Digraph
impl RefUnwindSafe for Digraph
impl Send for Digraph
impl Sync for Digraph
impl Unpin for Digraph
impl UnwindSafe for Digraph
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> DegreeSequence for T
impl<T> DegreeSequence for T
source§impl<D> InNeighbors for Dwhere
D: Arcs,
impl<D> InNeighbors for Dwhere
D: Arcs,
source§impl<T> IsBalanced for T
impl<T> IsBalanced for T
source§fn is_balanced(&self) -> bool
fn is_balanced(&self) -> bool
Returns whether the digraph is balanced.
source§impl<D> IsComplete for D
impl<D> IsComplete for D
source§fn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Determines whether the digraph is complete.
source§impl<T> IsIsolated for T
impl<T> IsIsolated for T
source§fn is_isolated(&self, u: usize) -> bool
fn is_isolated(&self, u: usize) -> bool
Returns whether the vertex is isolated in the digraph.
source§impl<T> IsOriented for T
impl<T> IsOriented for T
source§fn is_oriented(&self) -> bool
fn is_oriented(&self) -> bool
Returns whether the digraph is oriented.
source§impl<T> IsPendant for Twhere
T: Degree,
impl<T> IsPendant for Twhere
T: Degree,
source§fn is_pendant(&self, u: usize) -> bool
fn is_pendant(&self, u: usize) -> bool
Returns
true if the vertex is a pendant vertex in the digraph and
false otherwisesource§impl<T> IsRegular for T
impl<T> IsRegular for T
source§fn is_regular(&self) -> bool
fn is_regular(&self) -> bool
§Panics
Panics if the digraph has no vertices.
source§impl<D> IsSemicomplete for D
impl<D> IsSemicomplete for D
source§fn is_semicomplete(&self) -> bool
fn is_semicomplete(&self) -> bool
Determines whether the digraph is semicomplete.
source§impl<T> IsSubdigraph for T
impl<T> IsSubdigraph for T
source§fn is_subdigraph(&self, d: &T) -> bool
fn is_subdigraph(&self, d: &T) -> bool
Determines whether the digraph is a subdigraph of another digraph.
source§impl<T> IsSuperdigraph for Twhere
T: IsSubdigraph,
impl<T> IsSuperdigraph for Twhere
T: IsSubdigraph,
source§fn is_superdigraph(&self, d: &T) -> bool
fn is_superdigraph(&self, d: &T) -> bool
Determines whether the digraph is a superdigraph of another digraph.
source§impl<T> IsSymmetric for T
impl<T> IsSymmetric for T
source§fn is_symmetric(&self) -> bool
fn is_symmetric(&self) -> bool
Returns whether the digraph is symmetric.
source§impl<D> RandomTournament for D
impl<D> RandomTournament for D
source§fn random_tournament(order: usize) -> D
fn random_tournament(order: usize) -> D
Generates a random tournament.