Trait rs_graph::draw::GraphDrawer
source · pub trait GraphDrawer<'a, G>where
G: Graph<'a>,{
type NodeAttr: NodeAttr;
type EdgeAttr: EdgeAttr;
fn node_default(&self) -> &Self::NodeAttr;
fn node_default_mut(&mut self) -> &mut Self::NodeAttr;
fn node(&self, u: G::Node) -> &Self::NodeAttr;
fn node_mut(&mut self, u: G::Node) -> &mut Self::NodeAttr;
fn edge_default(&self) -> &Self::EdgeAttr;
fn edge_default_mut(&mut self) -> &mut Self::EdgeAttr;
fn edge(&self, e: G::Edge) -> &Self::EdgeAttr;
fn edge_mut(&mut self, e: G::Edge) -> &mut Self::EdgeAttr;
fn add_drawing(&mut self);
}
Expand description
Trait for drawing sequences of graphs.
Required Associated Types
Required Methods
sourcefn node_default(&self) -> &Self::NodeAttr
fn node_default(&self) -> &Self::NodeAttr
Return the default node attribute.
sourcefn node_default_mut(&mut self) -> &mut Self::NodeAttr
fn node_default_mut(&mut self) -> &mut Self::NodeAttr
Return the default node attribute.
sourcefn edge_default(&self) -> &Self::EdgeAttr
fn edge_default(&self) -> &Self::EdgeAttr
Return the default edge attribute.
sourcefn edge_default_mut(&mut self) -> &mut Self::EdgeAttr
fn edge_default_mut(&mut self) -> &mut Self::EdgeAttr
Return the default edge attribute.
sourcefn add_drawing(&mut self)
fn add_drawing(&mut self)
Add drawing with current attributes.