Trait GraphDrawer

Source
pub trait GraphDrawer<'a, G>
where G: GraphType,
{ type NodeAttr: NodeAttr; type EdgeAttr: EdgeAttr; // Required methods 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§

Source

fn node_default(&self) -> &Self::NodeAttr

Return the default node attribute.

Source

fn node_default_mut(&mut self) -> &mut Self::NodeAttr

Return the default node attribute.

Source

fn node(&self, u: G::Node<'_>) -> &Self::NodeAttr

Return the attributes of a node.

Source

fn node_mut(&mut self, u: G::Node<'_>) -> &mut Self::NodeAttr

Return the attributes of a node.

Source

fn edge_default(&self) -> &Self::EdgeAttr

Return the default edge attribute.

Source

fn edge_default_mut(&mut self) -> &mut Self::EdgeAttr

Return the default edge attribute.

Source

fn edge(&self, e: G::Edge<'_>) -> &Self::EdgeAttr

Return the attributes of an edge.

Source

fn edge_mut(&mut self, e: G::Edge<'_>) -> &mut Self::EdgeAttr

Return the attributes of an edge.

Source

fn add_drawing(&mut self)

Add drawing with current attributes.

Implementors§