Skip to content

Commit

Permalink
Add missing libraries in requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
stef4k committed May 15, 2021
1 parent de5ea8b commit 87a62bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions content/exploratory_notebooks/facebook_notebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Note: Nodes $0, 107, 348, 414, 686, 698, 1684, 1912, 3437, 3980$ are the ones wh
import pandas as pd
import numpy as np
import networkx as nx
from networkx.algorithms import community
import matplotlib.pyplot as plt
from random import randint
```
Expand Down Expand Up @@ -432,7 +431,7 @@ This function determines by itself the number of communities that will be detect
```{code-cell} ipython3
colors = ['' for x in range (G.number_of_nodes())] # initialize colors list
counter = 0
for com in community.label_propagation_communities(G):
for com in nx.community.label_propagation_communities(G):
color = '#%06X' % randint(0, 0xFFFFFF) # creates random RGB color
counter += 1
for node in list(com): # fill colors list with the particular color for the community nodes
Expand All @@ -455,7 +454,7 @@ With this function, we can decide the number of communities to be detected. Let'

```{code-cell} ipython3
colors = ['' for x in range (G.number_of_nodes())]
for com in community.asyn_fluidc(G, 8, seed=0):
for com in nx.community.asyn_fluidc(G, 8, seed=0):
color = '#%06X' % randint(0, 0xFFFFFF) # creates random RGB color
for node in list(com):
colors[node] = color
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ sphinx
myst-nb
pydata-sphinx-theme==0.5.2
jupytext
pandas
numpy
random

0 comments on commit 87a62bb

Please sign in to comment.