pub enum FloydWarshallAlgorithm {
Automatic,
Original,
Tree,
}Expand description
Variant of the Floyd–Warshall algorithm used by
Graph::distances_floyd_warshall (igraph_floyd_warshall_algorithm_t).
The default is Automatic.
Variants§
Automatic
Let igraph choose the best performing variant (currently always Tree).
Original
The textbook O(|V|³) Floyd–Warshall algorithm.
Tree
The “Tree” speed-up of Brodnik, Grgurovič and Požar, faster in most cases.
Trait Implementations§
Source§impl Clone for FloydWarshallAlgorithm
impl Clone for FloydWarshallAlgorithm
Source§fn clone(&self) -> FloydWarshallAlgorithm
fn clone(&self) -> FloydWarshallAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FloydWarshallAlgorithm
Source§impl Debug for FloydWarshallAlgorithm
impl Debug for FloydWarshallAlgorithm
Source§impl Default for FloydWarshallAlgorithm
impl Default for FloydWarshallAlgorithm
Source§fn default() -> FloydWarshallAlgorithm
fn default() -> FloydWarshallAlgorithm
Returns the “default value” for a type. Read more
impl Eq for FloydWarshallAlgorithm
Source§impl From<FloydWarshallAlgorithm> for igraph_floyd_warshall_algorithm_t
impl From<FloydWarshallAlgorithm> for igraph_floyd_warshall_algorithm_t
Source§fn from(value: FloydWarshallAlgorithm) -> igraph_floyd_warshall_algorithm_t
fn from(value: FloydWarshallAlgorithm) -> igraph_floyd_warshall_algorithm_t
Converts to this type from the input type.
Source§impl Hash for FloydWarshallAlgorithm
impl Hash for FloydWarshallAlgorithm
Source§impl PartialEq for FloydWarshallAlgorithm
impl PartialEq for FloydWarshallAlgorithm
Source§fn eq(&self, other: &FloydWarshallAlgorithm) -> bool
fn eq(&self, other: &FloydWarshallAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FloydWarshallAlgorithm
Auto Trait Implementations§
impl Freeze for FloydWarshallAlgorithm
impl RefUnwindSafe for FloydWarshallAlgorithm
impl Send for FloydWarshallAlgorithm
impl Sync for FloydWarshallAlgorithm
impl Unpin for FloydWarshallAlgorithm
impl UnsafeUnpin for FloydWarshallAlgorithm
impl UnwindSafe for FloydWarshallAlgorithm
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