lib/graphs: introduce `show_dot` for debugging digraphs.