|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.AbstractLayoutStage | +--y.layout.labeling.AbstractLabelingAlgorithm | +--y.layout.labeling.MISLabelingAlgorithm
Solving labeling problem by reducing it to the maximum independent set problem.
Field Summary | |
protected Graph |
conflictGraph
the conflict graph |
protected NodeMap |
nodesToBoxes
|
protected NodeMap |
nodesToID
|
protected static boolean |
showGraph
|
Fields inherited from interface y.layout.Layouter |
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
MISLabelingAlgorithm()
|
Method Summary | |
protected NodeMap |
assignProfit()
Creates a node map which assigns to each node the profit. |
void |
createConflictGraph(y.layout.labeling.Label[] labels)
Creates the conflict graph. |
protected void |
createEdges()
Creates one edge bewtween two nodes if the corresponding label candidates are intersecting. |
protected void |
createNodes(y.layout.labeling.Label[] labels)
Creates one node in the conflict graph for each label candidate. |
protected void |
intersectionSL()
|
protected void |
label(LayoutGraph graph,
y.layout.labeling.Label[] labels)
Performs labeling by solving a MIS. |
void |
propagateSolution(y.layout.labeling.Label[] labels,
NodeList mis)
Places the labels according to the independent set. |
protected abstract NodeList |
solveMIS(y.layout.labeling.Label[] labels)
Here the maximum independent set problem should be solved. |
Methods inherited from class y.layout.AbstractLayoutStage |
canLayoutCore, doLayoutCore, getCoreLayouter, setCoreLayouter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Graph conflictGraph
protected NodeMap nodesToBoxes
protected NodeMap nodesToID
protected static boolean showGraph
Constructor Detail |
public MISLabelingAlgorithm()
Method Detail |
protected void label(LayoutGraph graph, y.layout.labeling.Label[] labels)
label
in class AbstractLabelingAlgorithm
public void createConflictGraph(y.layout.labeling.Label[] labels)
protected abstract NodeList solveMIS(y.layout.labeling.Label[] labels)
public void propagateSolution(y.layout.labeling.Label[] labels, NodeList mis)
protected void createNodes(y.layout.labeling.Label[] labels)
protected void createEdges()
protected void intersectionSL()
protected NodeMap assignProfit()
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |