DirectedGraph<T extends Object>.of constructor

DirectedGraph<T extends Object>.of(
  1. DirectedGraph<T> graph
)

Constructs a shallow copy of graph.

Implementation

DirectedGraph.of(DirectedGraph<T> graph)
    : this(
        graph.data,
        comparator: graph.comparator,
      );