fn new(name string, label string, color string) &DotGraph
fn node_name(name string, context voidptr) string
type FnLabel2NodeName = fn (string, voidptr) string
struct DotGraph {
mut:
sb strings.Builder
}
fn (mut d DotGraph) writeln(line string)
fn (mut d DotGraph) finish()
fn (mut d DotGraph) new_node(nlabel string, cfg NewNodeConfig)
fn (mut d DotGraph) new_edge(source string, target string, cfg NewEdgeConfig)
struct NewEdgeConfig {
should_highlight bool
ctx voidptr = unsafe { nil }
name2node_fn FnLabel2NodeName = node_name
}
struct NewNodeConfig {
node_name string
should_highlight bool
tooltip string
ctx voidptr = unsafe { nil }
name2node_fn FnLabel2NodeName = node_name
}