pub enum GraphalgError {
Show 18 variants
InvalidGraph(String),
NegativeWeight {
edge: (usize, usize),
weight: f64,
},
NegativeCycle,
SourceOutOfRange {
node: usize,
n: usize,
},
DisconnectedGraph(String),
NotABipartiteGraph(String),
NotADag,
InvalidParameter(String),
NumericalInstability(String),
UnsupportedSmVersion(u32),
IndexOutOfBounds {
index: usize,
len: usize,
},
EmptyInput,
NotConverged {
iter: usize,
},
NotImplemented(String),
DimensionMismatch {
a: usize,
b: usize,
},
NoSolution(String),
InvalidEdgeWeight(String),
InvalidConfiguration(String),
}Expand description
Top-level error type for graph algorithm operations.
Variants§
InvalidGraph(String)
NegativeWeight
NegativeCycle
SourceOutOfRange
DisconnectedGraph(String)
NotABipartiteGraph(String)
NotADag
InvalidParameter(String)
NumericalInstability(String)
UnsupportedSmVersion(u32)
IndexOutOfBounds
EmptyInput
NotConverged
NotImplemented(String)
DimensionMismatch
NoSolution(String)
InvalidEdgeWeight(String)
InvalidConfiguration(String)
Trait Implementations§
Source§impl Debug for GraphalgError
impl Debug for GraphalgError
Source§impl Display for GraphalgError
impl Display for GraphalgError
Source§impl Error for GraphalgError
impl Error for GraphalgError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for GraphalgError
impl RefUnwindSafe for GraphalgError
impl Send for GraphalgError
impl Sync for GraphalgError
impl Unpin for GraphalgError
impl UnsafeUnpin for GraphalgError
impl UnwindSafe for GraphalgError
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