modify DotParser.java, Edge.java and add some classes for ranking