Skip to main content

render_dot_with_labels

Function render_dot_with_labels 

Source
pub fn render_dot_with_labels(
    graph: &ChannelGraph,
    label_fn: impl Fn(&OffchainPublicKey) -> String,
) -> String
Expand description

Renders the connected subgraph of graph as a DOT digraph, using the provided label_fn to produce the node label for each [OffchainPublicKey].

This allows callers to substitute onchain addresses or any other label format while keeping the rendering logic shared.