Trait orzir_core::graph::WeightedEdge

source ·
pub trait WeightedEdge<K>: GraphEdge<K>
where K: Copy,
{ type Weight: Add<Self::Weight, Output = Self::Weight> + Ord + Maximum + Zero + Copy; // Required method fn weight(&self) -> Self::Weight; }
Expand description

A trait for weighted edges.

Required Associated Types§

source

type Weight: Add<Self::Weight, Output = Self::Weight> + Ord + Maximum + Zero + Copy

Required Methods§

source

fn weight(&self) -> Self::Weight

Object Safety§

This trait is not object safe.

Implementors§