Changing the graph mode and checking if nodes have all the attributes