Package org.jgrapht.io
Class DOTImporter<V,E>
- java.lang.Object
-
- org.jgrapht.io.DOTImporter<V,E>
-
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Implemented Interfaces:
GraphImporter<V,E>
@Deprecated public class DOTImporter<V,E> extends Object implements GraphImporter<V,E>
Deprecated.UseDOTImporter
insteadImport a graph from a DOT file.For a description of the format see http://en.wikipedia.org/wiki/DOT_language and http://www.graphviz.org/doc/info/lang.html
- Author:
- Dimitrios Michail
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_GRAPH_ID_KEY
Deprecated.Default key used in the graph updater (if provided) for the graph ID.protected EdgeProvider<V,E>
edgeProvider
Deprecated.Constructs new edgesprotected ComponentUpdater<Graph<V,E>>
graphUpdater
Deprecated.Updates graph propertiesprotected VertexProvider<V>
vertexProvider
Deprecated.Constructs new verticesprotected ComponentUpdater<V>
vertexUpdater
Deprecated.Updates already constructed vertices
-
Constructor Summary
Constructors Constructor Description DOTImporter(VertexProvider<V> vertexProvider, EdgeProvider<V,E> edgeProvider)
Deprecated.Constructs a new importer.DOTImporter(VertexProvider<V> vertexProvider, EdgeProvider<V,E> edgeProvider, ComponentUpdater<V> vertexUpdater)
Deprecated.Constructs a new importer.DOTImporter(VertexProvider<V> vertexProvider, EdgeProvider<V,E> edgeProvider, ComponentUpdater<V> vertexUpdater, ComponentUpdater<Graph<V,E>> graphUpdater)
Deprecated.Constructs a new importer.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description EdgeProvider<V,E>
getEdgeProvider()
Deprecated.Get the edge providerComponentUpdater<Graph<V,E>>
getGraphUpdater()
Deprecated.Get the graph updater.VertexProvider<V>
getVertexProvider()
Deprecated.Get the vertex providerComponentUpdater<V>
getVertexUpdater()
Deprecated.Get the vertex updatervoid
importGraph(Graph<V,E> g, Reader in)
Deprecated.Import a graphvoid
setEdgeProvider(EdgeProvider<V,E> edgeProvider)
Deprecated.Set the edge provider.void
setGraphUpdater(ComponentUpdater<Graph<V,E>> graphUpdater)
Deprecated.Set the graph updater.void
setVertexProvider(VertexProvider<V> vertexProvider)
Deprecated.Set the vertex providervoid
setVertexUpdater(ComponentUpdater<V> vertexUpdater)
Deprecated.Set the vertex updater.-
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.GraphImporter
importGraph, importGraph
-
-
-
-
Field Detail
-
DEFAULT_GRAPH_ID_KEY
public static final String DEFAULT_GRAPH_ID_KEY
Deprecated.Default key used in the graph updater (if provided) for the graph ID.- See Also:
- Constant Field Values
-
vertexProvider
protected VertexProvider<V> vertexProvider
Deprecated.Constructs new vertices
-
edgeProvider
protected EdgeProvider<V,E> edgeProvider
Deprecated.Constructs new edges
-
vertexUpdater
protected ComponentUpdater<V> vertexUpdater
Deprecated.Updates already constructed vertices
-
graphUpdater
protected ComponentUpdater<Graph<V,E>> graphUpdater
Deprecated.Updates graph properties
-
-
Constructor Detail
-
DOTImporter
public DOTImporter(VertexProvider<V> vertexProvider, EdgeProvider<V,E> edgeProvider)
Deprecated.Constructs a new importer.- Parameters:
vertexProvider
- used to create verticesedgeProvider
- used to create edges
-
DOTImporter
public DOTImporter(VertexProvider<V> vertexProvider, EdgeProvider<V,E> edgeProvider, ComponentUpdater<V> vertexUpdater)
Deprecated.Constructs a new importer.- Parameters:
vertexProvider
- used to create verticesedgeProvider
- used to create edgesvertexUpdater
- used to further update vertices
-
DOTImporter
public DOTImporter(VertexProvider<V> vertexProvider, EdgeProvider<V,E> edgeProvider, ComponentUpdater<V> vertexUpdater, ComponentUpdater<Graph<V,E>> graphUpdater)
Deprecated.Constructs a new importer.- Parameters:
vertexProvider
- used to create verticesedgeProvider
- used to create edgesvertexUpdater
- used to further update verticesgraphUpdater
- used to update graph attributes, like the graph identifier
-
-
Method Detail
-
importGraph
public void importGraph(Graph<V,E> g, Reader in) throws ImportException
Deprecated.Import a graph- Specified by:
importGraph
in interfaceGraphImporter<V,E>
- Parameters:
g
- the graphin
- the input reader- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
getVertexProvider
public VertexProvider<V> getVertexProvider()
Deprecated.Get the vertex provider- Returns:
- the vertex provider
-
setVertexProvider
public void setVertexProvider(VertexProvider<V> vertexProvider)
Deprecated.Set the vertex provider- Parameters:
vertexProvider
- the new vertex provider. Must not be null.
-
getEdgeProvider
public EdgeProvider<V,E> getEdgeProvider()
Deprecated.Get the edge provider- Returns:
- The edge provider
-
setEdgeProvider
public void setEdgeProvider(EdgeProvider<V,E> edgeProvider)
Deprecated.Set the edge provider.- Parameters:
edgeProvider
- the new edge provider. Must not be null.
-
getVertexUpdater
public ComponentUpdater<V> getVertexUpdater()
Deprecated.Get the vertex updater- Returns:
- the vertex updater
-
setVertexUpdater
public void setVertexUpdater(ComponentUpdater<V> vertexUpdater)
Deprecated.Set the vertex updater.- Parameters:
vertexUpdater
- the new vertex updater. Must not be null.
-
getGraphUpdater
public ComponentUpdater<Graph<V,E>> getGraphUpdater()
Deprecated.Get the graph updater.- Returns:
- the graph updater
-
setGraphUpdater
public void setGraphUpdater(ComponentUpdater<Graph<V,E>> graphUpdater)
Deprecated.Set the graph updater.- Parameters:
graphUpdater
- the new graph updater. Must not be null.
-
-