org.jgrapht.ext
Class DOTExporter<V,E>
- java.lang.Object
-
- org.jgrapht.ext.DOTExporter<V,E>
-
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
- GraphExporter<V,E>
Deprecated.Useorg.jgrapht.io.DOTExporterinstead.
@Deprecated public class DOTExporter<V,E> extends java.lang.Object implements GraphExporter<V,E>
Exports a graph into a DOT file.For a description of the format see http://en.wikipedia.org/wiki/DOT_language.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringDEFAULT_GRAPH_IDDeprecated.Default graph id used by the exporter.
-
Constructor Summary
Constructors Constructor and Description DOTExporter()Deprecated.Constructs a new DOTExporter object with an integer name provider for the vertex IDs and null providers for the vertex and edge labels.DOTExporter(ComponentNameProvider<V> vertexIDProvider, ComponentNameProvider<V> vertexLabelProvider, ComponentNameProvider<E> edgeLabelProvider)Deprecated.Constructs a new DOTExporter object with the given ID and label providers.DOTExporter(ComponentNameProvider<V> vertexIDProvider, ComponentNameProvider<V> vertexLabelProvider, ComponentNameProvider<E> edgeLabelProvider, ComponentAttributeProvider<V> vertexAttributeProvider, ComponentAttributeProvider<E> edgeAttributeProvider)Deprecated.Constructs a new DOTExporter object with the given ID, label, and attribute providers.DOTExporter(ComponentNameProvider<V> vertexIDProvider, ComponentNameProvider<V> vertexLabelProvider, ComponentNameProvider<E> edgeLabelProvider, ComponentAttributeProvider<V> vertexAttributeProvider, ComponentAttributeProvider<E> edgeAttributeProvider, ComponentNameProvider<Graph<V,E>> graphIDProvider)Deprecated.Constructs a new DOTExporter object with the given ID, label, attribute, and graph id providers.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description voidexportGraph(Graph<V,E> g, java.io.Writer writer)Deprecated.Exports a graph into a plain text file in DOT format.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.ext.GraphExporter
exportGraph, exportGraph
-
-
-
-
Field Detail
-
DEFAULT_GRAPH_ID
public static final java.lang.String DEFAULT_GRAPH_ID
Deprecated.Default graph id used by the exporter.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DOTExporter
public DOTExporter()
Deprecated.Constructs a new DOTExporter object with an integer name provider for the vertex IDs and null providers for the vertex and edge labels.
-
DOTExporter
public DOTExporter(ComponentNameProvider<V> vertexIDProvider, ComponentNameProvider<V> vertexLabelProvider, ComponentNameProvider<E> edgeLabelProvider)
Deprecated.Constructs a new DOTExporter object with the given ID and label providers.- Parameters:
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.edgeLabelProvider- for generating edge labels. If null, edge labels will not be written to the file.
-
DOTExporter
public DOTExporter(ComponentNameProvider<V> vertexIDProvider, ComponentNameProvider<V> vertexLabelProvider, ComponentNameProvider<E> edgeLabelProvider, ComponentAttributeProvider<V> vertexAttributeProvider, ComponentAttributeProvider<E> edgeAttributeProvider)
Deprecated.Constructs a new DOTExporter object with the given ID, label, and attribute providers. Note that if a label provider conflicts with a label-supplying attribute provider, the label provider is given precedence.- Parameters:
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 (unless an attribute provider is supplied which also supplies labels).edgeLabelProvider- for generating edge labels. If null, edge labels will not be written to the file.vertexAttributeProvider- for generating vertex attributes. If null, vertex attributes will not be written to the file.edgeAttributeProvider- for generating edge attributes. If null, edge attributes will not be written to the file.
-
DOTExporter
public DOTExporter(ComponentNameProvider<V> vertexIDProvider, ComponentNameProvider<V> vertexLabelProvider, ComponentNameProvider<E> edgeLabelProvider, ComponentAttributeProvider<V> vertexAttributeProvider, ComponentAttributeProvider<E> edgeAttributeProvider, ComponentNameProvider<Graph<V,E>> graphIDProvider)
Deprecated.Constructs a new DOTExporter object with the given ID, label, attribute, and graph id providers. Note that if a label provider conflicts with a label-supplying attribute provider, the label provider is given precedence.- Parameters:
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 (unless an attribute provider is supplied which also supplies labels).edgeLabelProvider- for generating edge labels. If null, edge labels will not be written to the file.vertexAttributeProvider- for generating vertex attributes. If null, vertex attributes will not be written to the file.edgeAttributeProvider- for generating edge attributes. If null, edge attributes will not be written to the file.graphIDProvider- for generating the graph ID. If null the graph is namedDEFAULT_GRAPH_ID.
-
-
Method Detail
-
exportGraph
public void exportGraph(Graph<V,E> g, java.io.Writer writer)
Deprecated.Exports a graph into a plain text file in DOT format.- Specified by:
exportGraphin interfaceGraphExporter<V,E>- Parameters:
g- the graph to be exportedwriter- the writer to which the graph to be exported
-
-
DataMelt 3.0 © DataMelt by jWork.ORG