Search in sources :

Example 1 with GraphMLExporter

use of org.jgrapht.ext.GraphMLExporter in project opennars by opennars.

the class NARGraph method toGraphML.

public void toGraphML(Writer writer) throws SAXException, TransformerConfigurationException {
    GraphMLExporter gme = new GraphMLExporter(new IntegerNameProvider(), new StringNameProvider(), new IntegerEdgeNameProvider(), new StringEdgeNameProvider());
    gme.export(writer, this);
}
Also used : GraphMLExporter(org.jgrapht.ext.GraphMLExporter) IntegerEdgeNameProvider(org.jgrapht.ext.IntegerEdgeNameProvider) StringNameProvider(org.jgrapht.ext.StringNameProvider) IntegerNameProvider(org.jgrapht.ext.IntegerNameProvider) StringEdgeNameProvider(org.jgrapht.ext.StringEdgeNameProvider)

Aggregations

GraphMLExporter (org.jgrapht.ext.GraphMLExporter)1 IntegerEdgeNameProvider (org.jgrapht.ext.IntegerEdgeNameProvider)1 IntegerNameProvider (org.jgrapht.ext.IntegerNameProvider)1 StringEdgeNameProvider (org.jgrapht.ext.StringEdgeNameProvider)1 StringNameProvider (org.jgrapht.ext.StringNameProvider)1