- java.lang.Object
- 
- org.jgrapht.nio.BaseEventDrivenImporter<String,Pair<String,String>>
- 
- org.jgrapht.nio.dot.DOTEventDrivenImporter
 
 
- 
- All Implemented Interfaces:
- EventDrivenImporter<String,Pair<String,String>>
 
 public class DOTEventDrivenImporter extends BaseEventDrivenImporter<String,Pair<String,String>> implements EventDrivenImporter<String,Pair<String,String>> Import 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 The importer notifies interested parties using consumers. - Author:
- Dimitrios Michail
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_GRAPH_ID_KEYDefault key used for the graph ID.
 - 
Constructor SummaryConstructors Constructor Description DOTEventDrivenImporter()Constructs a new importer.DOTEventDrivenImporter(boolean notifyVertexAttributesOutOfOrder, boolean notifyEdgeAttributesOutOfOrder)Constructs a new importer.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidimportInput(Reader in)Import a graph- 
Methods inherited from class org.jgrapht.nio.BaseEventDrivenImporteraddEdgeAttributeConsumer, addEdgeConsumer, addEdgeCountConsumer, addEdgeWithAttributesConsumer, addGraphAttributeConsumer, addImportEventConsumer, addVertexAttributeConsumer, addVertexConsumer, addVertexCountConsumer, addVertexWithAttributesConsumer, notifyEdge, notifyEdgeAttribute, notifyEdgeCount, notifyEdgeWithAttributes, notifyGraphAttribute, notifyImportEvent, notifyVertex, notifyVertexAttribute, notifyVertexCount, notifyVertexWithAttributes, removeEdgeAttributeConsumer, removeEdgeConsumer, removeEdgeCountConsumer, removeEdgeWithAttributesConsumer, removeGraphAttributeConsumer, removeImportEventConsumer, removeVertexAttributeConsumer, removeVertexConsumer, removeVertexCountConsumer, removeVertexWithAttributesConsumer
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.jgrapht.nio.EventDrivenImporteraddEdgeAttributeConsumer, addEdgeConsumer, addEdgeCountConsumer, addEdgeWithAttributesConsumer, addGraphAttributeConsumer, addImportEventConsumer, addVertexAttributeConsumer, addVertexConsumer, addVertexCountConsumer, addVertexWithAttributesConsumer, importInput, importInput, removeEdgeAttributeConsumer, removeEdgeConsumer, removeEdgeCountConsumer, removeEdgeWithAttributesConsumer, removeGraphAttributeConsumer, removeImportEventConsumer, removeVertexAttributeConsumer, removeVertexConsumer, removeVertexCountConsumer, removeVertexWithAttributesConsumer
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_GRAPH_ID_KEYpublic static final String DEFAULT_GRAPH_ID_KEY Default key used for the graph ID.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
DOTEventDrivenImporterpublic DOTEventDrivenImporter() Constructs a new importer.
 - 
DOTEventDrivenImporterpublic DOTEventDrivenImporter(boolean notifyVertexAttributesOutOfOrder, boolean notifyEdgeAttributesOutOfOrder)Constructs a new importer.- Parameters:
- notifyVertexAttributesOutOfOrder- whether to notify for vertex attributes out-of-order even if they appear together in the input
- notifyEdgeAttributesOutOfOrder- whether to notify for edge attributes out-of-order even if they appear together in the input
 
 
- 
 - 
Method Detail- 
importInputpublic void importInput(Reader in) throws ImportException Description copied from interface:EventDrivenImporterImport a graph- Specified by:
- importInputin interface- EventDrivenImporter<String,Pair<String,String>>
- Parameters:
- in- the input reader
- Throws:
- ImportException- in case any error occurs, such as I/O or parse error
 
 
- 
 
-