Fixed minor bug in AbstractGraph