Small util to dump the lightning network graph into a graphviz dot file.
$ git clone git@github.com:pwm/ln-dot.git
$ cd ln-dot
with Nix:
$ nix-build nix/release.nix --attr exe
with Cabal:
$ nix-shell --run "cabal build"
3. Get the graph from your LN node, eg. your raspiblitz:
$ ssh my-raspiblitz 'lncli describegraph' > ln-graph.json
with Nix:
$ ./result/bin/ln-dot "ln-graph.json" > ln-graph.dot
with Cabal:
$ cabal exec -- ln-dot "ln-graph.json" > ln-graph.dot
$ sfdp -Tpng ln-graph.dot > ln-graph.png
$ sfdp -Tsvg ln-graph.dot > ln-graph.svg
see an example in the pics
directory.