/** * Returns a {@link TreeNetworkBuilder} initialized with all properties queryable from {@code * tree}. * * <p>The "queryable" properties are those that are exposed through the {@link CTree} interface, * such as {@link CTree#nodeOrder()}. Other properties, such as {@link #expectedNodeCount(int)}, * are not set in the new builder. */ public static <N, E> TreeNetworkBuilder<N, E> from(CTreeNetwork<N, E> tree) { return new TreeNetworkBuilder<N, E>().nodeOrder(tree.nodeOrder()); }