Skip to content

Commit

Permalink
Update content/exploratory_notebooks/facebook_notebook.md
Browse files Browse the repository at this point in the history
Co-authored-by: Ross Barnowski <[email protected]>
  • Loading branch information
stef4k and rossbar committed Oct 18, 2021
1 parent 6206ec9 commit 9f21be1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions content/exploratory_notebooks/facebook_notebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,7 @@ Also, the edges that are local bridges are saved in a list and their number is p
in a graph is a local bridge, if its endpoints $C$ and $D$ have no friends in common. Very importantly, an edge that is a bridge is also a local bridge. Thus, this list contains all the above bridges as well:

```{code-cell} ipython3
local_bridges = []
for edge in nx.local_bridges(G):
local_bridges.append(eval( '(' + str(edge[0]) + '),(' + str(edge[1]) + ')' )) # save the local bridge as a tuple
local_bridges = list(nx.local_bridges(G, with_span=False))
len(local_bridges)
```

Expand Down

0 comments on commit 9f21be1

Please sign in to comment.