pub trait DataMap: Data {
// Required methods
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>;
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>;
}
Expand description
Access node and edge weights (associated data).
Required Methods§
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
Object Safety§
This trait is not object safe.