pub enum MultiedgePolicy {
ErrorOnMultiedge,
KeepFirst,
KeepLast,
MinWeight,
SumWeight,
CountEdges,
}Expand description
How to collapse parallel edges between the same endpoints into one cell.
Variants§
ErrorOnMultiedge
Fail if any pair has more than one edge.
KeepFirst
Keep the first edge (by edge id) for each pair.
KeepLast
Keep the last edge (by edge id) for each pair.
MinWeight
Keep the minimum weight for each pair.
SumWeight
Sum the weights for each pair.
CountEdges
Use the number of parallel edges as the cell value.
Trait Implementations§
Source§impl Clone for MultiedgePolicy
impl Clone for MultiedgePolicy
Source§fn clone(&self) -> MultiedgePolicy
fn clone(&self) -> MultiedgePolicy
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 MultiedgePolicy
Source§impl Debug for MultiedgePolicy
impl Debug for MultiedgePolicy
impl Eq for MultiedgePolicy
Source§impl PartialEq for MultiedgePolicy
impl PartialEq for MultiedgePolicy
impl StructuralPartialEq for MultiedgePolicy
Auto Trait Implementations§
impl Freeze for MultiedgePolicy
impl RefUnwindSafe for MultiedgePolicy
impl Send for MultiedgePolicy
impl Sync for MultiedgePolicy
impl Unpin for MultiedgePolicy
impl UnsafeUnpin for MultiedgePolicy
impl UnwindSafe for MultiedgePolicy
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