Class TransformingGraphView<V,​W,​E,​F>

  • Type Parameters:
    V - incoming vertex type
    W - outgoing vertex type
    E - incoming edge type
    F - outgoing edge type

    public class TransformingGraphView<V,​W,​E,​F>
    extends Object
    Builds a transformed view of the input Graph<V, E> The transformed graph will be of type Graph<W, F>

    The transformation from vertex type V to W is achieved via a vertexTransformFunction Function<V, W> and the transformation from edge type E to F is achieved via an edgeTransformFunction Function<E, F>

    • Method Detail

      • builder

        public static <V,​W,​E,​F> TransformingGraphView.Builder<V,​W,​E,​F,​?,​?> builder​(org.jgrapht.Graph<V,​E> graph)
        Type Parameters:
        V - vertex type
        E - edge type
        Returns:
        a Builder ready to configure
      • build

        public org.jgrapht.Graph<W,​F> build()