log graph and vertex.java for debug