Skip to content

Commit

Permalink
Use recommended calling convention for node_link_graph.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Sep 26, 2024
1 parent 0332909 commit 0f77d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/generators/geometric.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ import json
# load json-ed networkx datafile
with open("data/tesla_network.json") as infile:
G = nx.json_graph.node_link_graph(json.load(infile), edges="links")
G = nx.node_link_graph(json.load(infile), edges="links")
```

```{code-cell} ipython3
Expand Down

0 comments on commit 0f77d51

Please sign in to comment.