BidirectedGraph<T extends Object>.from constructor

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

Constructs a bidirected graph from a directed graph.

Implementation

BidirectedGraph.from(DirectedGraph<T> graph)
    : super(
        graph.data,
        comparator: graph.comparator,
      ) {
  _symmetrize();
}