public abstract class Cycles extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Transform a simple cycle from an edge set representation to a graph path.
public static <V,E> GraphPath<V,E> simpleCycleToGraphPath(Graph<V,E> graph, List<E> cycle)
V- graph vertex type
E- graph edge type
graph- the graph
cycle- the simple cycle
IllegalArgumentException- if the provided edge set is not a simple cycle (circuit)
Copyright © 2018. All rights reserved.