Trait rs_graph::attributed::Attributes
source · pub trait Attributes {
type Node: Node;
type Edge: Edge;
type GraphAttr;
type NodeAttr;
type EdgeAttr;
fn attr(&self) -> &Self::GraphAttr;
fn attr_mut(&mut self) -> &mut Self::GraphAttr;
fn node(&self, u: Self::Node) -> &Self::NodeAttr;
fn node_mut(&mut self, u: Self::Node) -> &mut Self::NodeAttr;
fn edge(&self, e: Self::Edge) -> &Self::EdgeAttr;
fn edge_mut(&mut self, e: Self::Edge) -> &mut Self::EdgeAttr;
}
Expand description
This trait provides (mutable) access to the attributes of an attributed graph.
A structure implementing this trait is returned as the second
value by the split
method of an attributed graph.