returning graph instead of adjacency matrix