Trait rs_graph::attributed::NetworkAttributes [−][src]
pub trait NetworkAttributes: Attributes { type BiEdgeAttr; fn biedge(&self, e: Self::Edge) -> &Self::BiEdgeAttr; fn biedge_mut(&mut self, e: Self::Edge) -> &mut Self::BiEdgeAttr; }
This trait provides (mutable) access to the attributes of a network.
A structure implementing this trait is returned as the second
value by the split
method of an attributed network.
Associated Types
type BiEdgeAttr
Type of biedge attributes.
Required Methods
fn biedge(&self, e: Self::Edge) -> &Self::BiEdgeAttr
Return the attributes of a biedge.
fn biedge_mut(&mut self, e: Self::Edge) -> &mut Self::BiEdgeAttr
Return the attributes of a biedge.
Implementors
impl<'a, G, Gx, Nx, Ex, Ax> NetworkAttributes for GraphAttrs<'a, G, Gx, Nx, Ex, Ax> where
G: IndexNetwork<'a>, type BiEdgeAttr = Ax;