pub fn render_dot_with_labels(
graph: &ChannelGraph,
label_fn: impl Fn(&OffchainPublicKey) -> String,
) -> StringExpand 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.