pub enum VoronoiTiebreaker {
First,
Last,
Random,
}Expand description
Tie-breaking rule used when two or more generators reach a vertex at the same distance.
Mirrors igraph_voronoi_tiebreaker_t from
references/igraph/include/igraph_paths.h.
Variants§
First
Keep the earliest generator (in input order) that reached the
vertex. Counterpart of IGRAPH_VORONOI_FIRST.
Last
Always overwrite with the latest generator. Counterpart of
IGRAPH_VORONOI_LAST.
Random
Pick one of the equidistant generators uniformly at random.
Counterpart of IGRAPH_VORONOI_RANDOM. Uses a seeded
SplitMix64 so results are reproducible per seed value.
Note: as in the C reference, VoronoiTiebreaker::Random does
not guarantee that the resulting partitions are connected
subgraphs (a tie-breaker chain can leave a vertex behind in a
disconnected island of its assigned partition).
Trait Implementations§
Source§impl Clone for VoronoiTiebreaker
impl Clone for VoronoiTiebreaker
Source§fn clone(&self) -> VoronoiTiebreaker
fn clone(&self) -> VoronoiTiebreaker
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 VoronoiTiebreaker
impl Debug for VoronoiTiebreaker
Source§impl PartialEq for VoronoiTiebreaker
impl PartialEq for VoronoiTiebreaker
impl Copy for VoronoiTiebreaker
impl Eq for VoronoiTiebreaker
impl StructuralPartialEq for VoronoiTiebreaker
Auto Trait Implementations§
impl Freeze for VoronoiTiebreaker
impl RefUnwindSafe for VoronoiTiebreaker
impl Send for VoronoiTiebreaker
impl Sync for VoronoiTiebreaker
impl Unpin for VoronoiTiebreaker
impl UnsafeUnpin for VoronoiTiebreaker
impl UnwindSafe for VoronoiTiebreaker
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