V - the graph vertex typeE - the graph edge typeGmlExporter instead.@Deprecated public class GmlExporter<V,E> extends Object implements GraphExporter<V,E>
For a description of the format see http://www. infosun.fmi.uni-passau.de/Graphlet/GML/.
The behavior of the exporter such as whether to print vertex labels, edge labels, and/or edge
weights can be adjusted using the setParameter method.
| Modifier and Type | Class and Description |
|---|---|
static class |
GmlExporter.Parameter
Deprecated.
Use
GmlExporter.Parameter instead. |
| Constructor and Description |
|---|
GmlExporter()
Deprecated.
Creates a new GmlExporter object with integer name providers for the vertex and edge IDs and
null providers for the vertex and edge labels.
|
GmlExporter(ComponentNameProvider<V> vertexIDProvider,
ComponentNameProvider<V> vertexLabelProvider,
ComponentNameProvider<E> edgeIDProvider,
ComponentNameProvider<E> edgeLabelProvider)
Deprecated.
Constructs a new GmlExporter object with the given ID and label providers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exportGraph(Graph<V,E> g,
Writer writer)
Deprecated.
Exports an graph into a plain text GML format.
|
boolean |
isParameter(GmlExporter.Parameter p)
Deprecated.
Return if a particular parameter of the exporter is enabled
|
void |
setParameter(GmlExporter.Parameter p,
boolean value)
Deprecated.
Set the value of a parameter of the exporter
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexportGraph, exportGraphpublic GmlExporter()
public GmlExporter(ComponentNameProvider<V> vertexIDProvider, ComponentNameProvider<V> vertexLabelProvider, ComponentNameProvider<E> edgeIDProvider, ComponentNameProvider<E> edgeLabelProvider)
vertexIDProvider - for generating vertex IDs. Must not be null.vertexLabelProvider - for generating vertex labels. If null, vertex labels will be
generated using the toString() method of the vertex object.edgeIDProvider - for generating vertex IDs. Must not be null.edgeLabelProvider - for generating edge labels. If null, edge labels will be generated
using the toString() method of the edge object.public void exportGraph(Graph<V,E> g, Writer writer)
exportGraph in interface GraphExporter<V,E>writer - the writerg - the graphpublic boolean isParameter(GmlExporter.Parameter p)
p - the parametertrue if the parameter is set, false otherwisepublic void setParameter(GmlExporter.Parameter p, boolean value)
p - the parametervalue - the value to setCopyright © 2017. All rights reserved.