fix isgraph