An implementation of Java's Graph Class