@@ -68,7 +68,7 @@ def plot_degree_histogram(G, title="Degree distribution"):
6868 plt.show()
6969```
7070
71- ## Random graphs (Erdős –Rényi / Gilbert)
71+ ## Random graphs (Erdos –Rényi / Gilbert)
7272
7373In the ** Gilbert** model $G(N, p)$, we consider every possible pair of nodes and include the edge independently with probability $p$.
7474
@@ -90,7 +90,7 @@ G_random = nx.erdos_renyi_graph(n=80, p=0.06, seed=SEED)
9090
9191pos = nx.spring_layout(G_random, seed=SEED)
9292nx.draw(G_random, pos=pos, node_size=120, node_color="lightgray", edge_color="gray")
93- plt.title("Erdős –Rényi random graph")
93+ plt.title("Erdos –Rényi random graph")
9494plt.show()
9595
9696summarize_graph(G_random, name="Random (G(N,p))")
@@ -121,7 +121,7 @@ Watts–Strogatz networks start from a **ring lattice** (high clustering, long p
121121
122122Key properties:
123123
124- - For small $p$ (e.g. $p \in [ 0.01, 0.2] $), you often get ** high clustering** * and* ** short path lengths** (“ small-world” ).
124+ - For small $p$ (e.g. $p \in [ 0.01, 0.2] $), you often get ** high clustering** * and* ** short path lengths** (" small-world" ).
125125- Degree distribution stays relatively ** narrow** (most nodes have degree near $k$).
126126
127127In NetworkX:
@@ -158,7 +158,7 @@ The **Barabási–Albert (BA)** model generates this effect via **preferential a
158158
159159Key properties (typical):
160160
161- - Degree distribution is heavy-tailed (often summarized as “ scale-free” ).
161+ - Degree distribution is heavy-tailed (often summarized as " scale-free" ).
162162- Small average path length (hubs create shortcuts).
163163- Clustering is usually lower than small-world models (but there are variants that increase clustering).
164164
@@ -185,9 +185,9 @@ plot_degree_histogram(G_sf, title="Scale-free: degree distribution")
185185```
186186
187187::: {.callout-tip collapse="true"}
188- ## “ Scale-free” in NetworkX
188+ ## " Scale-free" in NetworkX
189189
190- The BA model is the most common introduction to “ scale-free” networks.
190+ The BA model is the most common introduction to " scale-free" networks.
191191NetworkX also provides other generators (some return directed multigraphs), for example:
192192
193193- ` nx.scale_free_graph(n, seed=...) `
0 commit comments