Minor: fixed problem with graph factory