Interface VertexBuilderWith<V,​E>

  • Type Parameters:
    V - the type of the decorated vertex value
    E - the type of the decorated edge value

    public interface VertexBuilderWith<V,​E>

    VertexBuilderWith that is used inside GraphBuilder and allows to add a callback method to the vertex creation method

    Since:
    1.0
    Author:
    Andreas Pointner
    • Method Detail

      • with

        GraphBuilder<V,​E> with​(Consumer<Vertex<V,​E>> callback)
        Adds a callback method, that is called once the vertex is created. This allows adding additional information to the vertex, such as MetaTags. Note: This method is also called if a cached instance of a vertex is reused, which could potentially already have specific information set.
        Parameters:
        callback - the callback method to be executed
        Returns:
        the instance of the original graph builder