pub enum GraphError {
Show 14 variants
Disconnected,
NegativeCycle,
NegativeWeight,
WrongGraphKind(String),
InvalidEndpoint {
edge: usize,
node: usize,
len: usize,
},
InvalidEdgeId {
index: usize,
id: usize,
len: usize,
},
WeightOverflow(String),
NonFiniteCost(String),
InvalidControl(String),
ControlStopped(String),
NodeOutOfRange {
node: usize,
count: usize,
},
CertificateInvalid(String),
InvalidAssignment(String),
Unsupported(String),
}Expand description
Errors raised by graph construction, algorithms, and verifiers.
Variants§
Disconnected
The graph is disconnected, so the requested result does not exist.
NegativeCycle
A negative-weight cycle makes shortest paths undefined.
NegativeWeight
A negative edge weight was supplied to an algorithm that forbids it.
WrongGraphKind(String)
The algorithm was called on the wrong kind of graph.
InvalidEndpoint
An edge referenced a node index outside the node range.
Fields
InvalidEdgeId
An edge id is not the storage index required by id-indexed consumers.
Fields
WeightOverflow(String)
A graph weight sum or path relaxation overflowed its representation.
NonFiniteCost(String)
A floating-point or user-defined cost was not finite or comparable.
InvalidControl(String)
An algorithm control was internally inconsistent.
ControlStopped(String)
A work, memory, time, or cancellation bound stopped the algorithm.
NodeOutOfRange
A node index passed to an algorithm was outside the node range.
CertificateInvalid(String)
A submitted certificate failed verification.
InvalidAssignment(String)
An assignment matrix, policy, or submitted assignment was malformed.
Unsupported(String)
A staged feature is not yet implemented.
Trait Implementations§
Source§impl Clone for GraphError
impl Clone for GraphError
Source§fn clone(&self) -> GraphError
fn clone(&self) -> GraphError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GraphError
impl Debug for GraphError
Source§impl Display for GraphError
impl Display for GraphError
impl Eq for GraphError
Source§impl Error for GraphError
impl Error for GraphError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()