public class GraphMLExporter<V,E> extends Object
For a description of the format see http://en.wikipedia.org/wiki/GraphML.
Constructor and Description |
---|
GraphMLExporter()
Constructs a new GraphMLExporter object with integer name providers for
the vertex and edge IDs and null providers for the vertex and edge
labels.
|
GraphMLExporter(VertexNameProvider<V> vertexIDProvider,
VertexNameProvider<V> vertexLabelProvider,
EdgeNameProvider<E> edgeIDProvider,
EdgeNameProvider<E> edgeLabelProvider)
Constructs a new GraphMLExporter object with the given ID and label
providers.
|
public GraphMLExporter()
public GraphMLExporter(VertexNameProvider<V> vertexIDProvider, VertexNameProvider<V> vertexLabelProvider, EdgeNameProvider<E> edgeIDProvider, EdgeNameProvider<E> edgeLabelProvider)
vertexIDProvider
- for generating vertex IDs. Must not be null.vertexLabelProvider
- for generating vertex labels. If null, vertex
labels will not be written to the file.edgeIDProvider
- for generating vertex IDs. Must not be null.edgeLabelProvider
- for generating edge labels. If null, edge labels
will not be written to the file.public void export(Writer writer, Graph<V,E> g) throws SAXException, TransformerConfigurationException
writer
- the writer to which the graph to be exportedg
- the graph to be exportedSAXException
TransformerConfigurationException
Copyright © 2016. All rights reserved.