pub enum DisjointPathsError {
NodeNotFound,
NoPath,
SameSourceSink,
}Expand description
Why edge_disjoint_paths / node_disjoint_paths and their directed
twins produce no paths.
Variants§
NodeNotFound
Source or target is not a node of the graph (networkx’s
NetworkXError("node ... not in graph")).
NoPath
No flow joins source to target (networkx’s NetworkXNoPath).
SameSourceSink
An edge-disjoint query from a node to itself where that node has an
edge: networkx’s flow function raises
NetworkXError("source and sink are the same node"). With no edge
networkx raises NetworkXNoPath first, and so does this.
Trait Implementations§
Source§impl Clone for DisjointPathsError
impl Clone for DisjointPathsError
impl Copy for DisjointPathsError
Source§impl Debug for DisjointPathsError
impl Debug for DisjointPathsError
impl Eq for DisjointPathsError
Source§impl PartialEq for DisjointPathsError
impl PartialEq for DisjointPathsError
impl StructuralPartialEq for DisjointPathsError
Auto Trait Implementations§
impl Freeze for DisjointPathsError
impl RefUnwindSafe for DisjointPathsError
impl Send for DisjointPathsError
impl Sync for DisjointPathsError
impl Unpin for DisjointPathsError
impl UnsafeUnpin for DisjointPathsError
impl UnwindSafe for DisjointPathsError
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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