Network-Analysis-Made-Simple icon indicating copy to clipboard operation
Network-Analysis-Made-Simple copied to clipboard

Missing list() conversion

Open zbarry opened this issue 6 years ago • 0 comments

In notebook 4:

Is:

# Compare for yourself that those are the only triangles that node 3 is involved in.
neighbors3 = G.neighbors(3)
neighbors3.append(3)
nx.draw(G.subgraph(neighbors3), with_labels=True)

Should be:

# Compare for yourself that those are the only triangles that node 3 is involved in.
neighbors3 = list(G.neighbors(3))
neighbors3.append(3)
nx.draw(G.subgraph(neighbors3), with_labels=True)

zbarry avatar Jul 09 '19 21:07 zbarry