Open qjhart opened 8 years ago
First pass at this library looks semi promising https://github.com/glejeune/node-graphviz. Hasn't been worked on in awhile, but seems to work. Obviously requires graphviz for png output.
updates for args here: 600cf220b0c82e02ed3a146fa0ad17060bbbdd88
@qjhart Couple things. I have updated the matrix commands arguments. Changes and reasons below:
Both -f dot and -f png are implemented. Pull and npm install. The png creation requires graphviz to be in your path.
For the graph output, I'm not sure which values you want on the link labels. Currently it's [k]:[cost]
Here's a simple example, of a digraph. It would be nice if we could add these in with the cnf matrix command, although they do get complicated pretty quickly.