tincapp icon indicating copy to clipboard operation
tincapp copied to clipboard

Feature: node graph view

Open pacien opened this issue 4 years ago • 2 comments

It could be nice to render a graph of the VPN nodes and links within the application's graphical user interface.

Tinc can dump the network graph on demand with tincctl dump graph or automatically every minute with the GraphDumpFile option. The output is a DOT file, which can probably be rendered or converted to SVG by some library.

pacien avatar Jan 07 '22 13:01 pacien

I'd like to have this feature, but I don't have a lot of experience in Android development. Could you please comment on which kind of help would be useful? GraphViz (dot) is able to convert DOT files to SVG. Would it be acceptable to bundle it with the app?

giomasce avatar Nov 24 '23 09:11 giomasce

I couldn't find a pure Java or Kotlin implementation of a dot graph renderer. So we would indeed probably need to bundle a copy of graphviz. Its licence should allow that. We would need to build it from source for all the different target systems though.

The generated SVG would then need to be displayed in the app with zoom and pan. This would probably also require a library to do that properly.

pacien avatar Nov 24 '23 17:11 pacien