pub enum MstAlgorithm {
Automatic,
Unweighted,
Prim,
Kruskal,
}Expand description
Selector for the minimum-spanning-tree algorithm.
Counterpart of the C igraph_mst_algorithm_t enum at
spanning_trees.c:461-484.
Variants§
Automatic
Let the implementation pick: Unweighted when weights is
None, otherwise Kruskal.
Unweighted
Ignore edge weights and run a BFS spanning forest.
Prim
Prim’s algorithm with a binary min-heap (eager variant).
Kruskal
Kruskal’s algorithm with sort + union-find.
Trait Implementations§
Source§impl Clone for MstAlgorithm
impl Clone for MstAlgorithm
Source§fn clone(&self) -> MstAlgorithm
fn clone(&self) -> MstAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MstAlgorithm
impl Debug for MstAlgorithm
Source§impl PartialEq for MstAlgorithm
impl PartialEq for MstAlgorithm
impl Copy for MstAlgorithm
impl Eq for MstAlgorithm
impl StructuralPartialEq for MstAlgorithm
Auto Trait Implementations§
impl Freeze for MstAlgorithm
impl RefUnwindSafe for MstAlgorithm
impl Send for MstAlgorithm
impl Sync for MstAlgorithm
impl Unpin for MstAlgorithm
impl UnsafeUnpin for MstAlgorithm
impl UnwindSafe for MstAlgorithm
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