General cleanup of the graph.php file
Implemented color switch in force-directed graph