Interface EventDrivenImporter<V,​E>

    • 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