Search in sources :

Example 1 with GmlExporter

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

the class NARGraph method toGML.

public void toGML(Writer writer) {
    GmlExporter gme = new GmlExporter(new IntegerNameProvider(), new StringNameProvider(), new IntegerEdgeNameProvider(), new StringEdgeNameProvider());
    gme.setPrintLabels(GmlExporter.PRINT_EDGE_VERTEX_LABELS);
    gme.export(writer, this);
}
Also used : IntegerEdgeNameProvider(org.jgrapht.ext.IntegerEdgeNameProvider) StringNameProvider(org.jgrapht.ext.StringNameProvider) GmlExporter(org.jgrapht.ext.GmlExporter) IntegerNameProvider(org.jgrapht.ext.IntegerNameProvider) StringEdgeNameProvider(org.jgrapht.ext.StringEdgeNameProvider)

Aggregations

GmlExporter (org.jgrapht.ext.GmlExporter)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