removed magic number from IGraph.java