|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.algo.IndependentSets
public class IndependentSets
This class provides methods for calculating independent sets.
An independent set is a set of nodes in a graph, in which no two nodes are adjacent.
Method Summary | |
---|---|
static NodeList |
getIndependentSet(Graph conflictGraph)
Calculates an independent set for a given graph. |
static NodeList[] |
getIndependentSets(Graph conflictGraph)
Partitions the set of nodes of the given graph into independent sets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NodeList[] getIndependentSets(Graph conflictGraph)
getIndependentSet(y.base.Graph)
.
simple
i.e., it contains neither parallel
edges nor self-loops.conflictGraph
- the input graph
NodeList
s each of which contains an independent set of nodesgetIndependentSet(y.base.Graph)
public static NodeList getIndependentSet(Graph conflictGraph)
A greedy heuristic is applied which tries to find a large independent set.
simple
i.e., it contains neither parallel
edges nor self-loops.conflictGraph
- the input graph
NodeList
containing an independent set of nodesgetIndependentSet(y.base.Graph)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |