- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Known Implementing Classes:
CSVEventDrivenImporter
,DIMACSEventDrivenImporter
,DOTEventDrivenImporter
,GmlEventDrivenImporter
,Graph6Sparse6EventDrivenImporter
,GraphMLEventDrivenImporter
,JSONEventDrivenImporter
,SimpleGEXFEventDrivenImporter
,SimpleGraphMLEdgeListImporter
,SimpleGraphMLEventDrivenImporter
public interface EventDrivenImporter<V,E>
Interface for an importer using consumers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEdgeAttributeConsumer
(BiConsumer<Pair<E, String>, Attribute> consumer) Add an edge attribute consumer.void
addEdgeConsumer
(Consumer<E> consumer) Add an edge consumer.void
addEdgeCountConsumer
(Consumer<Integer> consumer) Add an edge count consumer.void
addEdgeWithAttributesConsumer
(BiConsumer<E, Map<String, Attribute>> consumer) Add an edge with attributes consumer.void
addGraphAttributeConsumer
(BiConsumer<String, Attribute> consumer) Add a graph attribute consumer.void
addImportEventConsumer
(Consumer<ImportEvent> consumer) Add an ImportEvent consumer.void
addVertexAttributeConsumer
(BiConsumer<Pair<V, String>, Attribute> consumer) Add a vertex attribute consumer.void
addVertexConsumer
(Consumer<V> consumer) Add a vertex consumer.void
addVertexCountConsumer
(Consumer<Integer> consumer) Add a vertex count consumer.void
addVertexWithAttributesConsumer
(BiConsumer<V, Map<String, Attribute>> consumer) Add a vertex with attributes consumer.default void
importInput
(File file) Import a graphdefault void
Import a graphvoid
importInput
(Reader input) Import a graphvoid
removeEdgeAttributeConsumer
(BiConsumer<Pair<E, String>, Attribute> consumer) Remove an edge attribute consumer.void
removeEdgeConsumer
(Consumer<E> consumer) Remove an edge consumer.void
removeEdgeCountConsumer
(Consumer<Integer> consumer) Remove an edge count consumer.void
removeEdgeWithAttributesConsumer
(BiConsumer<E, Map<String, Attribute>> consumer) Remove an edge with attributes consumervoid
removeGraphAttributeConsumer
(BiConsumer<String, Attribute> consumer) Remove a graph attribute consumer.void
removeImportEventConsumer
(Consumer<ImportEvent> consumer) Remove an ImportEvent consumer.void
removeVertexAttributeConsumer
(BiConsumer<Pair<V, String>, Attribute> consumer) Remove a vertex attribute consumer.void
removeVertexConsumer
(Consumer<V> consumer) Remove a vertex consumer.void
removeVertexCountConsumer
(Consumer<Integer> consumer) Remove a vertex count consumer.void
removeVertexWithAttributesConsumer
(BiConsumer<V, Map<String, Attribute>> consumer) Remove a vertex with attributes consumer
-
Method Details
-
addImportEventConsumer
Add an ImportEvent consumer.- Parameters:
consumer
- the consumer
-
removeImportEventConsumer
Remove an ImportEvent consumer.- Parameters:
consumer
- the consumer
-
addVertexCountConsumer
Add a vertex count consumer.- Parameters:
consumer
- the consumer
-
removeVertexCountConsumer
Remove a vertex count consumer.- Parameters:
consumer
- the consumer
-
addEdgeCountConsumer
Add an edge count consumer.- Parameters:
consumer
- the consumer
-
removeEdgeCountConsumer
Remove an edge count consumer.- Parameters:
consumer
- the consumer
-
addVertexConsumer
Add a vertex consumer.- Parameters:
consumer
- the consumer
-
removeVertexConsumer
Remove a vertex consumer.- Parameters:
consumer
- the consumer
-
addVertexWithAttributesConsumer
Add a vertex with attributes consumer.- Parameters:
consumer
- the consumer
-
removeVertexWithAttributesConsumer
Remove a vertex with attributes consumer- Parameters:
consumer
- the consumer
-
addEdgeConsumer
Add an edge consumer.- Parameters:
consumer
- the consumer
-
removeEdgeConsumer
Remove an edge consumer.- Parameters:
consumer
- the consumer
-
addEdgeWithAttributesConsumer
Add an edge with attributes consumer.- Parameters:
consumer
- the consumer
-
removeEdgeWithAttributesConsumer
Remove an edge with attributes consumer- Parameters:
consumer
- the consumer
-
addGraphAttributeConsumer
Add a graph attribute consumer.- Parameters:
consumer
- the consumer
-
removeGraphAttributeConsumer
Remove a graph attribute consumer.- Parameters:
consumer
- the consumer
-
addVertexAttributeConsumer
Add a vertex attribute consumer.- Parameters:
consumer
- the consumer
-
removeVertexAttributeConsumer
Remove a vertex attribute consumer.- Parameters:
consumer
- the consumer
-
addEdgeAttributeConsumer
Add an edge attribute consumer.- Parameters:
consumer
- the consumer
-
removeEdgeAttributeConsumer
Remove an edge attribute consumer.- Parameters:
consumer
- the consumer
-
importInput
Import a graph- Parameters:
input
- the input reader- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
importInput
Import a graph- Parameters:
in
- the input stream- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
importInput
Import a graph- Parameters:
file
- the file to read from- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-