anvaka / VivaGraphJS

Graph drawing library for JavaScript
Other
3.75k stars 425 forks source link

Renderer for Graphviz graphs? #61

Closed LeMoussel closed 9 years ago

LeMoussel commented 10 years ago

Is it possible to display Graphviz graphs (xdot renderer) with vivagraph?

Example of Graphviz dot file

digraph G { 0 [label="A"]; 1 [label="B"]; 2 [label="C"]; 3 [label="D"]; 4 [label="E"]; 0 -> 1 [ ]; 0 -> 3 [ ]; 1 -> 2 [ ]; 1 -> 4 [ ]; 2 -> 3 [ ]; 3 -> 4 [ ]; }

qdelettre commented 10 years ago

Why not converting the format of your data ?

LeMoussel commented 10 years ago

because I have other visualization tool on Windows PC. The idea is to display graphs in a browser without converting data

qdelettre commented 10 years ago

I was thinking of a converter in Js.

LeMoussel commented 10 years ago

It may be interesting to add this converter to VivaGraphJS ? Because many people use Graphviz dot format file to create & display graphs

anvaka commented 10 years ago

No, vivagraph does not support .dot files rendering at the moment. But I like your idea @PapyRef.

@qdelettre how complex is your .dot file? Do you need support of UI attributes as well (shapes, colors, etc.)?

qdelettre commented 10 years ago

Hi,

I used to convert dot files with Python networkx library, so no problem for me ;)

LeMoussel commented 10 years ago

For graph datastructures , I use QuickGraph with C #

anvaka commented 9 years ago

Just a small update. While VivaGraph does not support dot files parsing, I'm working on a separate project which would eventually let us implement dot files rendering: https://github.com/anvaka/dotparser

It will be part of ngraph family. VivaGraph starting from version 0.7 will be built from ngraph modules as well, which gives great potential for code reuse.