Is there a commonly used markup language for graphs (the topological kind). I would expect XMLelements such as Node and Edge and attributes showing directionality and labels
UPDATE: So far there is a choice of 2, GraphML and DotML. GraphML hasn't changed since 2007 but maybe it doesn't need to! SO readers may wish to know what toolsets each have - I am encouraged that Gephi uses GrahML, and obviously DotML has the GraphViz and other toolsets. (I shall be writing a limited toolkit in Java for whichever language I choose)
UPDATE: I am personally going with DotML. I need the language for modelling (e.g. adding labels, weights, etc. to nodes and edges so will need my own additional namespace). The attraction of DotML is that it seems to be active, and that graphViz can make use of the output. YMMV
Dot language is the main language I've used for graphs.
This language is used by systems such as GraphViz to generate its graphs and is fairly human readable.
Here's the graphviz DOT language reference.
As an aside note, I wrote a .NET GraphViz wrapper that can be used to parse DOT strings and output graphs. If that's something of use to you then you can grab the code from CodePlex: http://graphviz.codeplex.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With