Interface EventDrivenImporter<V,​E>

    • Method Detail

      • addImportEventConsumer

        void addImportEventConsumer​(Consumer<ImportEvent> consumer)
        Add an ImportEvent consumer.
        Parameters:
        consumer - the consumer
      • removeImportEventConsumer

        void removeImportEventConsumer​(Consumer<ImportEvent> consumer)
        Remove an ImportEvent consumer.
        Parameters:
        consumer - the consumer
      • addVertexCountConsumer

        void addVertexCountConsumer​(Consumer<Integer> consumer)
        Add a vertex count consumer.
        Parameters:
        consumer - the consumer
      • removeVertexCountConsumer

        void removeVertexCountConsumer​(Consumer<Integer> consumer)
        Remove a vertex count consumer.
        Parameters:
        consumer - the consumer
      • addEdgeCountConsumer

        void addEdgeCountConsumer​(Consumer<Integer> consumer)
        Add an edge count consumer.
        Parameters:
        consumer - the consumer
      • removeEdgeCountConsumer

        void removeEdgeCountConsumer​(Consumer<Integer> consumer)
        Remove an edge count consumer.
        Parameters:
        consumer - the consumer
      • addVertexConsumer

        void addVertexConsumer​(Consumer<V> consumer)
        Add a vertex consumer.
        Parameters:
        consumer - the consumer
      • removeVertexConsumer

        void removeVertexConsumer​(Consumer<V> consumer)
        Remove a vertex consumer.
        Parameters:
        consumer - the consumer
      • addVertexWithAttributesConsumer

        void addVertexWithAttributesConsumer​(BiConsumer<V,​Map<String,​Attribute>> consumer)
        Add a vertex with attributes consumer.
        Parameters:
        consumer - the consumer
      • removeVertexWithAttributesConsumer

        void removeVertexWithAttributesConsumer​(BiConsumer<V,​Map<String,​Attribute>> consumer)
        Remove a vertex with attributes consumer
        Parameters:
        consumer - the consumer
      • addEdgeConsumer

        void addEdgeConsumer​(Consumer<E> consumer)
        Add an edge consumer.
        Parameters:
        consumer - the consumer
      • removeEdgeConsumer

        void removeEdgeConsumer​(Consumer<E> consumer)
        Remove an edge consumer.
        Parameters:
        consumer - the consumer
      • addEdgeWithAttributesConsumer

        void addEdgeWithAttributesConsumer​(BiConsumer<E,​Map<String,​Attribute>> consumer)
        Add an edge with attributes consumer.
        Parameters:
        consumer - the consumer
      • removeEdgeWithAttributesConsumer

        void removeEdgeWithAttributesConsumer​(BiConsumer<E,​Map<String,​Attribute>> consumer)
        Remove an edge with attributes consumer
        Parameters:
        consumer - the consumer
      • addGraphAttributeConsumer

        void addGraphAttributeConsumer​(BiConsumer<String,​Attribute> consumer)
        Add a graph attribute consumer.
        Parameters:
        consumer - the consumer
      • removeGraphAttributeConsumer

        void removeGraphAttributeConsumer​(BiConsumer<String,​Attribute> consumer)
        Remove a graph attribute consumer.
        Parameters:
        consumer - the consumer
      • addVertexAttributeConsumer

        void addVertexAttributeConsumer​(BiConsumer<Pair<V,​String>,​Attribute> consumer)
        Add a vertex attribute consumer.
        Parameters:
        consumer - the consumer
      • removeVertexAttributeConsumer

        void removeVertexAttributeConsumer​(BiConsumer<Pair<V,​String>,​Attribute> consumer)
        Remove a vertex attribute consumer.
        Parameters:
        consumer - the consumer
      • addEdgeAttributeConsumer

        void addEdgeAttributeConsumer​(BiConsumer<Pair<E,​String>,​Attribute> consumer)
        Add an edge attribute consumer.
        Parameters:
        consumer - the consumer
      • removeEdgeAttributeConsumer

        void removeEdgeAttributeConsumer​(BiConsumer<Pair<E,​String>,​Attribute> consumer)
        Remove an edge attribute consumer.
        Parameters:
        consumer - the consumer
      • importInput

        void importInput​(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​(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​(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