pub enum ErrorKind {
ContradictoryPaths,
DuplicateEdge,
InvalidArgument,
NodeNotFound,
NoPartitions,
NotAPartition,
EdgeNotFound,
EdgeWeightNotSpecified,
PowerIterationFailedConvergence,
ReadError,
SelfLoopsFound,
WrongMethod,
}Expand description
An enumeration of different kinds of errors that can occur while creating and analyzing Graph objects.
Variants§
ContradictoryPaths
Contradictory paths were found when computing shortest paths.
DuplicateEdge
A duplicate Edge was added to a Graph that doesn’t
support multi Edges.
InvalidArgument
An argument to a function was not a valid value.
NodeNotFound
NoPartitions
No partitions were found.
NotAPartition
The specified communities did not form a partition of a Graph.
EdgeNotFound
EdgeWeightNotSpecified
An algorithm requiring an Edge to have a weight was invoked but an Edge that did not have a weight value (was f64::NAN) was found in the Graph.
PowerIterationFailedConvergence
An algorithm failed to converge to the specified tolerance within the specified number of iterations of a power iteration method.
ReadError
An error occurred while reading a graph from a file.
SelfLoopsFound
WrongMethod
A method was invoked on a Graph whose GraphSpecs are not supported by the method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more