GraphLab Project

graphlab.graph.graph
Class GraphColoring

java.lang.Object
  extended by graphlab.graph.graph.GraphColoring

public class GraphColoring
extends java.lang.Object

Author:
Azin Azadi

Field Summary
 java.util.HashMap<EdgeModel,java.lang.Integer> edgeColors
           
 GraphModel graph
           
 java.lang.String label
           
 java.util.HashMap<VertexModel,java.lang.Integer> vertexColors
           
 
Constructor Summary
GraphColoring()
          using this constructor the selected graph will be considered as the default graph in the blackboard
GraphColoring(GraphModel graph)
           
 
Method Summary
 void applyColoring()
           
 void backupColoring()
          resets and stores all colorings of g
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

graph

public GraphModel graph

vertexColors

public java.util.HashMap<VertexModel,java.lang.Integer> vertexColors

edgeColors

public java.util.HashMap<EdgeModel,java.lang.Integer> edgeColors

label

public java.lang.String label
Constructor Detail

GraphColoring

public GraphColoring(GraphModel graph)

GraphColoring

public GraphColoring()
using this constructor the selected graph will be considered as the default graph in the blackboard

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

applyColoring

public void applyColoring()

backupColoring

public void backupColoring()
resets and stores all colorings of g


GraphLab Project