|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.umlv.roadcoloring.graph.Graph
fr.umlv.roadcoloring.graph.QuotientGraph
public class QuotientGraph
Manage the quotient graph created in each iteration The quotient graph is like the initial graph but collapses nodes with the same class
Field Summary |
---|
Fields inherited from class fr.umlv.roadcoloring.graph.Graph |
---|
BLUEEDGE, REDEDGE |
Constructor Summary | |
---|---|
QuotientGraph(Graph g)
Construct the quotient graph from the initial graph (reduce nodes) |
Method Summary | |
---|---|
protected void |
computeIndexes()
Run the computation of indexes, i.e. the levels or each nodes (distance to the circle, root of the tree) fill the data tab. |
protected void |
edgeSwap(int node)
flip the edge of node |
protected StablePair |
findStablePair()
find and return a stable pair in the graph compute the distance of each nodes to circles made a threatman exchange if necessary for finding a stable pair |
int |
getQuotientSize()
Number of node in the quotient graph |
Methods inherited from class fr.umlv.roadcoloring.graph.Graph |
---|
browse, coloring, dotty, get, getBlue, getClasses, getNodeClass, getRed, getSize, getSucessorByRed, isAcceptable, isAperiodic, isStronglyConnected, setBlue, setRed, toDot, toString, verifySyncWord |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QuotientGraph(Graph g)
g
- initial graphMethod Detail |
---|
public int getQuotientSize()
protected void edgeSwap(int node)
edgeSwap
in class Graph
node
- node to be flipprotected StablePair findStablePair()
protected void computeIndexes()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |