i'm looking for cases where there are no edges, but doing

`if graph[x]`

evaluates to true if there are edges. Replaced this w/ call to graph.degree.