Interface EdgeWithBuilder<V,​E>

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

    public interface EdgeWithBuilder<V,​E>

    EdgeWithBuilder that is used inside EdgeBuilder and EdgeDataBuilder and allows to add a callback method, that is called with the created edge. This allows to e.g. add MetaTags.

    Since:
    1.0
    Author:
    Andreas Pointner
    • Method Detail

      • with

        GraphBuilder<V,​E> with​(Consumer<Edge<V,​E>> callback)
        Add a callback method, that is executed when the edge is created. This method allows performing different action on the created edge. E.g. change the initial weight or add MetaTags
        Parameters:
        callback - the callback method for the edge
        Returns:
        the original GraphBuilder