android/guava/src/com/google/common/graph/ValueGraphBuilder.java
public static <N, V> ValueGraphBuilder<N, V> from(ValueGraph<N, V> graph) {
    return new ValueGraphBuilder<N, V>(graph.isDirected())
        .allowsSelfLoops(graph.allowsSelfLoops())
        .nodeOrder(graph.nodeOrder());
  }
public static <N, V> ValueGraphBuilder<N, V> from(ValueGraph<N, V> graph) {
    return new ValueGraphBuilder<N, V>(graph.isDirected())
        .allowsSelfLoops(graph.allowsSelfLoops())
        .nodeOrder(graph.nodeOrder());
  }
Returns a {@link ValueGraphBuilder} initialized with all properties queryable from {@code
graph}.

<p>The "queryable" properties are those that are exposed through the {@link ValueGraph}
interface, such as {@link ValueGraph#isDirected()}. Other properties, such as {@link
#expectedNodeCount(int)}, are not set in the new builder.