BidirectedGraph<T extends Object>.transitiveClosure constructor

BidirectedGraph<T extends Object>.transitiveClosure(
  1. DirectedGraph<T> graph
)

Constructs the bidirected transitive closure of a graph.

  • Note: The input graph can be a directed graph or a bidirected graph.

Implementation

factory BidirectedGraph.transitiveClosure(DirectedGraph<T> graph) {
  final tc = DirectedGraph.transitiveClosure(graph);
  return BidirectedGraph<T>.from(tc);
}