pub trait Templating {
type Context;
type Value;
// Required methods
fn node(
&self,
graph: &Graph,
index: usize,
value: Self::Value,
context: Self::Context,
) -> (String, String);
fn edge(
&self,
graph: &Graph,
source: usize,
target: usize,
) -> (String, String);
}Expand description
Trait for templating node and edge labels and tooltips.