-
- 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addEdgeAttributeConsumer(java.util.function.BiConsumer<Pair<E,java.lang.String>,Attribute> consumer)
Add an edge attribute consumer.void
addEdgeConsumer(java.util.function.Consumer<E> consumer)
Add an edge consumer.void
addEdgeCountConsumer(java.util.function.Consumer<java.lang.Integer> consumer)
Add an edge count consumer.void
addGraphAttributeConsumer(java.util.function.BiConsumer<java.lang.String,Attribute> consumer)
Add a graph attribute consumer.void
addImportEventConsumer(java.util.function.Consumer<ImportEvent> consumer)
Add an ImportEvent consumer.void
addVertexAttributeConsumer(java.util.function.BiConsumer<Pair<V,java.lang.String>,Attribute> consumer)
Add a vertex attribute consumer.void
addVertexConsumer(java.util.function.Consumer<V> consumer)
Add a vertex consumer.void
addVertexCountConsumer(java.util.function.Consumer<java.lang.Integer> consumer)
Add a vertex count consumer.default void
importInput(java.io.File file)
Import a graphdefault void
importInput(java.io.InputStream in)
Import a graphvoid
importInput(java.io.Reader input)
Import a graphvoid
removeEdgeAttributeConsumer(java.util.function.BiConsumer<Pair<E,java.lang.String>,Attribute> consumer)
Remove an edge attribute consumer.void
removeEdgeConsumer(java.util.function.Consumer<E> consumer)
Remove an edge consumer.void
removeEdgeCountConsumer(java.util.function.Consumer<java.lang.Integer> consumer)
Remove an edge count consumer.void
removeGraphAttributeConsumer(java.util.function.BiConsumer<java.lang.String,Attribute> consumer)
Remove a graph attribute consumer.void
removeImportEventConsumer(java.util.function.Consumer<ImportEvent> consumer)
Remove an ImportEvent consumer.void
removeVertexAttributeConsumer(java.util.function.BiConsumer<Pair<V,java.lang.String>,Attribute> consumer)
Remove a vertex attribute consumer.void
removeVertexConsumer(java.util.function.Consumer<V> consumer)
Remove a vertex consumer.void
removeVertexCountConsumer(java.util.function.Consumer<java.lang.Integer> consumer)
Remove a vertex count consumer.
-
-
-
Method Detail
-
addImportEventConsumer
void addImportEventConsumer(java.util.function.Consumer<ImportEvent> consumer)
Add an ImportEvent consumer.- Parameters:
consumer
- the consumer
-
removeImportEventConsumer
void removeImportEventConsumer(java.util.function.Consumer<ImportEvent> consumer)
Remove an ImportEvent consumer.- Parameters:
consumer
- the consumer
-
addVertexCountConsumer
void addVertexCountConsumer(java.util.function.Consumer<java.lang.Integer> consumer)
Add a vertex count consumer.- Parameters:
consumer
- the consumer
-
removeVertexCountConsumer
void removeVertexCountConsumer(java.util.function.Consumer<java.lang.Integer> consumer)
Remove a vertex count consumer.- Parameters:
consumer
- the consumer
-
addEdgeCountConsumer
void addEdgeCountConsumer(java.util.function.Consumer<java.lang.Integer> consumer)
Add an edge count consumer.- Parameters:
consumer
- the consumer
-
removeEdgeCountConsumer
void removeEdgeCountConsumer(java.util.function.Consumer<java.lang.Integer> consumer)
Remove an edge count consumer.- Parameters:
consumer
- the consumer
-
addVertexConsumer
void addVertexConsumer(java.util.function.Consumer<V> consumer)
Add a vertex consumer.- Parameters:
consumer
- the consumer
-
removeVertexConsumer
void removeVertexConsumer(java.util.function.Consumer<V> consumer)
Remove a vertex consumer.- Parameters:
consumer
- the consumer
-
addEdgeConsumer
void addEdgeConsumer(java.util.function.Consumer<E> consumer)
Add an edge consumer.- Parameters:
consumer
- the consumer
-
removeEdgeConsumer
void removeEdgeConsumer(java.util.function.Consumer<E> consumer)
Remove an edge consumer.- Parameters:
consumer
- the consumer
-
addGraphAttributeConsumer
void addGraphAttributeConsumer(java.util.function.BiConsumer<java.lang.String,Attribute> consumer)
Add a graph attribute consumer.- Parameters:
consumer
- the consumer
-
removeGraphAttributeConsumer
void removeGraphAttributeConsumer(java.util.function.BiConsumer<java.lang.String,Attribute> consumer)
Remove a graph attribute consumer.- Parameters:
consumer
- the consumer
-
addVertexAttributeConsumer
void addVertexAttributeConsumer(java.util.function.BiConsumer<Pair<V,java.lang.String>,Attribute> consumer)
Add a vertex attribute consumer.- Parameters:
consumer
- the consumer
-
removeVertexAttributeConsumer
void removeVertexAttributeConsumer(java.util.function.BiConsumer<Pair<V,java.lang.String>,Attribute> consumer)
Remove a vertex attribute consumer.- Parameters:
consumer
- the consumer
-
addEdgeAttributeConsumer
void addEdgeAttributeConsumer(java.util.function.BiConsumer<Pair<E,java.lang.String>,Attribute> consumer)
Add an edge attribute consumer.- Parameters:
consumer
- the consumer
-
removeEdgeAttributeConsumer
void removeEdgeAttributeConsumer(java.util.function.BiConsumer<Pair<E,java.lang.String>,Attribute> consumer)
Remove an edge attribute consumer.- Parameters:
consumer
- the consumer
-
importInput
void importInput(java.io.Reader input)
Import a graph- Parameters:
input
- the input reader- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
importInput
default void importInput(java.io.InputStream in)
Import a graph- Parameters:
in
- the input stream- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
importInput
default void importInput(java.io.File file)
Import a graph- Parameters:
file
- the file to read from- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
-