Search in sources :

Example 1 with StringNameProvider

use of org.jgrapht.ext.StringNameProvider 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)

Example 2 with StringNameProvider

use of org.jgrapht.ext.StringNameProvider 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

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