Returns a NetworkBuilder initialized with all properties queryable from graph. The "queryable" properties are those that are exposed through the Network interface, such as Network#isDirected(). Other properties, such as #expectedNodeCount(int), are not set
(Network<N, E> graph)
| 96 | |
| 97 | |
| 98 | public static <N, E> NetworkBuilder<N, E> from(Network<N, E> graph) { |
| 99 | return new NetworkBuilder<N, E>(graph.isDirected()).allowsParallelEdges(graph.allowsParallelEdges()).allowsSelfLoops(graph.allowsSelfLoops()); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Specifies whether the graph will allow parallel edges. Attempting to add a parallel edge to |
no test coverage detected