|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--drasys.or.graph.color.WelshPowell
An implementation of the Welsh and Powell graph coloring algorithm.
| Constructor Summary | |
WelshPowell(GraphI graph)
|
|
| Method Summary | |
int |
colorEdges()
Colors the edges of the graph. |
int |
colorVertices()
Colors the vertices of the graph. |
int |
getEdgeColor(EdgeI edge)
Returns the color assigned to the edge. |
int[] |
getEdgeColors()
Returns an array containing the edge color assignments. |
int |
getVertexColor(VertexI vertex)
Returns the color assigned to the vertex. |
int[] |
getVertexColors()
Returns an array containing the vertex color assignments. |
int |
sizeOfEdgeColors()
Returns the number of unique colors used to color the edges. |
int |
sizeOfVertexColors()
Returns the number of unique colors used to color the vertices. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public WelshPowell(GraphI graph)
| Method Detail |
public int colorVertices()
public int colorEdges()
public int sizeOfVertexColors()
throws GraphException
public int sizeOfEdgeColors()
throws GraphException
public int getVertexColor(VertexI vertex)
throws GraphException
public int getEdgeColor(EdgeI edge)
throws GraphException
public int[] getVertexColors()
throws GraphException
public int[] getEdgeColors()
throws GraphException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||