paulws / Banish

Banish
1 stars 2 forks source link

Graph-ML output #5

Open paulws opened 10 years ago

paulws commented 10 years ago

One of the requirements for Banish is the ability to export the net to a graph ml file for viewing. I've managed to integrate the OGDF library and can now produce a very basic graphml output file that mirrors the network layout on the display. All this contains is node layouts, connections and node names. What other information would be of use, which can be readily incorporated into the graphml format?

graphml-example

amb-enthusiast commented 10 years ago

Good stuff.

One thought would be to define a data attribute for nodes, of type string, with a key = "CPT" to store string value of the MongoDB friendly JSON-style CPT.

Granted, it does seems a bit clunky, but would mean we wouldn't loose the probabilities in the model as you save out to GraphML, and we would reuse the JSON formatting code.

paulws commented 10 years ago

Ant, I've just added the probabilities to the node labels for the moment.