Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions book/book.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ \section{Probability of connectivity}
def prob_connected(n, p, iters=100):
tf = [is_connected(make_random_graph(n, p))
for i in range(iters)]
return np.mean(bool)
return np.mean(tf)
\end{code}

The parameters \py{n} and \py{p} are passed along to \py{make_random_graph};
Expand Down Expand Up @@ -2135,7 +2135,7 @@ \section{WS graphs}
consider the edges in a particular order and rewire each one with
probability $p$. If an edge is rewired, they leave the first node
unchanged and choose the second node at random. They don't allow self
loops or multiple edges; that is, you can't have a edge from a node to
loops or multiple edges; that is, you can't have an edge from a node to
itself, and you can't have more than one edge between the same two
nodes.

Expand Down