Trait rs_graph::attributed::NetworkAttributes
source · 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;
}
Expand description
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.
Required Associated Types
sourcetype BiEdgeAttr
type BiEdgeAttr
Type of biedge attributes.
Required Methods
sourcefn biedge(&self, e: Self::Edge) -> &Self::BiEdgeAttr
fn biedge(&self, e: Self::Edge) -> &Self::BiEdgeAttr
Return the attributes of a biedge.
sourcefn biedge_mut(&mut self, e: Self::Edge) -> &mut Self::BiEdgeAttr
fn biedge_mut(&mut self, e: Self::Edge) -> &mut Self::BiEdgeAttr
Return the attributes of a biedge.