[−][src]Trait rs_graph::attributed::Attributes
use rs-graph-derive crate instead
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.
Associated Types
type Node: Copy + Eq
use rs-graph-derive crate instead
Type of nodes of the associated graph.
type Edge: Copy + Eq
use rs-graph-derive crate instead
Type of edges of the associated graph.
type GraphAttr
use rs-graph-derive crate instead
Type of graph attributes.
type NodeAttr
use rs-graph-derive crate instead
Type of node attributes.
type EdgeAttr
use rs-graph-derive crate instead
Type of edge attributes.
Required methods
fn attr(&self) -> &Self::GraphAttr
use rs-graph-derive crate instead
Return the graph attributes.
fn attr_mut(&mut self) -> &mut Self::GraphAttr
use rs-graph-derive crate instead
Return the graph attributes.
fn node(&self, u: Self::Node) -> &Self::NodeAttr
use rs-graph-derive crate instead
Return the attributes of a node.
fn node_mut(&mut self, u: Self::Node) -> &mut Self::NodeAttr
use rs-graph-derive crate instead
Return the attributes of a node.
fn edge(&self, e: Self::Edge) -> &Self::EdgeAttr
use rs-graph-derive crate instead
Return the attributes of an edge.
fn edge_mut(&mut self, e: Self::Edge) -> &mut Self::EdgeAttr
use rs-graph-derive crate instead
Return the attributes of an edge.
Implementors
impl<'a, G, Gx, Nx, Ex> Attributes for GraphAttrs<'a, G, Gx, Nx, Ex> where
G: IndexGraph<'a>,
[src]
G: IndexGraph<'a>,
type Node = G::Node
use rs-graph-derive crate instead
type Edge = G::Edge
use rs-graph-derive crate instead
type GraphAttr = Gx
use rs-graph-derive crate instead
type NodeAttr = Nx
use rs-graph-derive crate instead
type EdgeAttr = Ex
use rs-graph-derive crate instead