Class DAGs


  • public final class DAGs
    extends Object
    Factory for creating DAGs
    Author:
    dmitry.neverov
    • Constructor Detail

      • DAGs

        public DAGs()
    • Method Detail

      • emptyDAG

        @NotNull
        public static <T> DAG<T> emptyDAG()
      • createFromEdges

        @NotNull
        public static <T> DAG<T> createFromEdges​(@NotNull
                                                 Collection<? extends Pair<T,​T>> edges)
        Returns DAG created from collection of edges
        Type Parameters:
        T - type of DAG elements
        Parameters:
        edges - edges of DAG
        Returns:
        see above
      • insertNodes

        @NotNull
        public static <T> DAG<T> insertNodes​(@NotNull
                                             DAG<T> dag,
                                             Map<T,​List<T>> nodes)
      • insertNodes

        @NotNull
        public static <T> DAG<T> insertNodes​(@NotNull
                                             DAG<T> dag,
                                             Map<T,​List<T>> nodes,
                                             boolean insertBetweenNodes)
      • createReachabilityIndex

        @NotNull
        public static <T> ReachabilityIndex<T> createReachabilityIndex​(@NotNull
                                                                       DAG<T> dag)
      • createReachabilityIndexExt

        @NotNull
        public static <T> ReachabilityIndexExt<T> createReachabilityIndexExt​(@NotNull
                                                                             DAG<T> dag)