pub enum EdgeWeightType {
Show 13 variants
Explicit,
Euc2d,
Euc3d,
Max2d,
Max3d,
Man2d,
Man3d,
Ceil2d,
Geo,
Att,
Xray1,
Xray2,
Special,
}
Expand description
How the edge weights (or distances) are given.
Variants§
Explicit
Weights are listed explicitly.
Euc2d
Weights are Euclidean distances in 2-D.
Euc3d
Weights are Euclidean distances in 3-D.
Max2d
Weights are maximum distances in 2-D.
Max3d
Weights are maximum distances in 3-D.
Man2d
Weights are manhattan distances in 2-D.
Man3d
Weights are manhattan distances in 3-D.
Ceil2d
Weights are Euclidean distances in 2-D rounded up.
Geo
Weights are geographical distances.
Att
Special distance function for problems att48 and att532.
Xray1
Special distance function for crystallography problems (Version 1).
Xray2
Special distance function for crystallography problems (Version 2).
Special
There is a special distance function documented elsewhere.
Trait Implementations§
Source§impl Clone for EdgeWeightType
impl Clone for EdgeWeightType
Source§fn clone(&self) -> EdgeWeightType
fn clone(&self) -> EdgeWeightType
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 EdgeWeightType
impl Debug for EdgeWeightType
impl Copy for EdgeWeightType
Auto Trait Implementations§
impl Freeze for EdgeWeightType
impl RefUnwindSafe for EdgeWeightType
impl Send for EdgeWeightType
impl Sync for EdgeWeightType
impl Unpin for EdgeWeightType
impl UnwindSafe for EdgeWeightType
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