Package org.jgrapht.io
Class LemonExporter<V,E>
- java.lang.Object
-
- org.jgrapht.io.LemonExporter<V,E>
-
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
GraphExporter<V,E>
@Deprecated public class LemonExporter<V,E> extends Object implements GraphExporter<V,E>
Deprecated.UseLemonExporterinstead.Exports a graph into Lemon graph format (LGF).This is the custom graph format used in the Lemon graph library.
- Author:
- Dimitrios Michail
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLemonExporter.ParameterDeprecated.Parameters that affect the behavior of theLemonExporterexporter.
-
Field Summary
Fields Modifier and Type Field Description protected ComponentNameProvider<E>edgeIDProviderDeprecated.Provides an identifier for an edge.protected ComponentNameProvider<V>vertexIDProviderDeprecated.Provides an identifier for a vertex.
-
Constructor Summary
Constructors Constructor Description LemonExporter()Deprecated.Constructs a new exporter.LemonExporter(ComponentNameProvider<V> vertexIDProvider)Deprecated.Constructs a new exporter with a given vertex ID provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidexportGraph(Graph<V,E> g, Writer writer)Deprecated.Export a graphComponentNameProvider<E>getEdgeIDProvider()Deprecated.Get the edge id providerComponentNameProvider<V>getVertexIDProvider()Deprecated.Get the vertex id providerbooleanisParameter(LemonExporter.Parameter p)Deprecated.Return if a particular parameter of the exporter is enabledvoidsetEdgeIDProvider(ComponentNameProvider<E> edgeIDProvider)Deprecated.Set the edge id provider.voidsetParameter(LemonExporter.Parameter p, boolean value)Deprecated.Set the value of a parameter of the exportervoidsetVertexIDProvider(ComponentNameProvider<V> vertexIDProvider)Deprecated.Set the vertex id provider-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.io.GraphExporter
exportGraph, exportGraph
-
-
-
-
Field Detail
-
vertexIDProvider
protected ComponentNameProvider<V> vertexIDProvider
Deprecated.Provides an identifier for a vertex.
-
edgeIDProvider
protected ComponentNameProvider<E> edgeIDProvider
Deprecated.Provides an identifier for an edge.
-
-
Constructor Detail
-
LemonExporter
public LemonExporter()
Deprecated.Constructs a new exporter.
-
LemonExporter
public LemonExporter(ComponentNameProvider<V> vertexIDProvider)
Deprecated.Constructs a new exporter with a given vertex ID provider.- Parameters:
vertexIDProvider- for generating vertex IDs. Must not be null.
-
-
Method Detail
-
exportGraph
public void exportGraph(Graph<V,E> g, Writer writer)
Deprecated.Description copied from interface:GraphExporterExport a graph- Specified by:
exportGraphin interfaceGraphExporter<V,E>- Parameters:
g- the graph to exportwriter- the output writer
-
isParameter
public boolean isParameter(LemonExporter.Parameter p)
Deprecated.Return if a particular parameter of the exporter is enabled- Parameters:
p- the parameter- Returns:
trueif the parameter is set,falseotherwise
-
setParameter
public void setParameter(LemonExporter.Parameter p, boolean value)
Deprecated.Set the value of a parameter of the exporter- Parameters:
p- the parametervalue- the value to set
-
getVertexIDProvider
public ComponentNameProvider<V> getVertexIDProvider()
Deprecated.Get the vertex id provider- Returns:
- the vertex id provider
-
setVertexIDProvider
public void setVertexIDProvider(ComponentNameProvider<V> vertexIDProvider)
Deprecated.Set the vertex id provider- Parameters:
vertexIDProvider- the new vertex id provider. Must not be null.
-
getEdgeIDProvider
public ComponentNameProvider<E> getEdgeIDProvider()
Deprecated.Get the edge id provider- Returns:
- The edge provider
-
setEdgeIDProvider
public void setEdgeIDProvider(ComponentNameProvider<E> edgeIDProvider)
Deprecated.Set the edge id provider.- Parameters:
edgeIDProvider- the new edge id provider. Must not be null.
-
-