WeightedDirectedGraph<T extends Object, W extends Comparable>.transitiveClosure constructor

WeightedDirectedGraph<T extends Object, W extends Comparable>.transitiveClosure(
  1. WeightedDirectedGraph<T, W> graph
)

Constructs the transitive closure of graph.

Implementation

factory WeightedDirectedGraph.transitiveClosure(
        WeightedDirectedGraph<T, W> graph) =>
    WeightedDirectedGraph(
      graph.transitiveWeightedEdges,
      comparator: graph.comparator,
      summation: graph.summation,
      zero: graph.zero,
    );