use of org.jgrapht.ext.IntegerEdgeNameProvider 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);
}
use of org.jgrapht.ext.IntegerEdgeNameProvider 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);
}
Aggregations