/** * Returns a synchronized Forest backed by the passed Forest. * * @param <V> * the vertex type * @param <E> * the edge type * @param forest * the forest for which a synchronized wrapper is to be created * @return a synchronized Forest backed by the passed Forest */ public static <V, E> SynchronizedForest<V, E> synchronizedForest( Forest<V, E> forest) { return new SynchronizedForest<V, E>(forest); }
/** * Returns a synchronized Forest backed by the passed Forest. * @param <V> the vertex type * @param <E> the edge type * @param forest the forest for which a synchronized wrapper is to be created * @return a synchronized Forest backed by the passed Forest */ public static <V,E> SynchronizedForest<V,E> synchronizedForest(Forest<V,E> forest) { return new SynchronizedForest<V,E>(forest); }