Trait rs_graph::attributed::AttributedNetwork
source · pub trait AttributedNetwork<'a>: AttributedGraph<'a>where
Self::Graph: Network<'a>,
Self::Attributes: 'a + NetworkAttributes<Node = <<Self as AttributedGraph<'a>>::Graph as Graph<'a>>::Node, Edge = <<Self as AttributedGraph<'a>>::Graph as Graph<'a>>::Edge>,{
fn biedge(
&'a self,
e: <Self::Graph as Graph<'a>>::Edge
) -> &'a <Self::Attributes as NetworkAttributes>::BiEdgeAttr;
fn biedge_mut(
&'a mut self,
e: <Self::Graph as Graph<'a>>::Edge
) -> &'a mut <Self::Attributes as NetworkAttributes>::BiEdgeAttr;
}
Expand description
An attributed network.
This trait adds another type of attributes to a graph: attributes associated with each forward and backward edge of a network (i.e. with so called “biedges”).
Required Methods
sourcefn biedge(
&'a self,
e: <Self::Graph as Graph<'a>>::Edge
) -> &'a <Self::Attributes as NetworkAttributes>::BiEdgeAttr
fn biedge(
&'a self,
e: <Self::Graph as Graph<'a>>::Edge
) -> &'a <Self::Attributes as NetworkAttributes>::BiEdgeAttr
Return the attributes of a biedge.
sourcefn biedge_mut(
&'a mut self,
e: <Self::Graph as Graph<'a>>::Edge
) -> &'a mut <Self::Attributes as NetworkAttributes>::BiEdgeAttr
fn biedge_mut(
&'a mut self,
e: <Self::Graph as Graph<'a>>::Edge
) -> &'a mut <Self::Attributes as NetworkAttributes>::BiEdgeAttr
Return the attributes of a biedge.