You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this page, we will explore some basic properties of networks, such as degreeand density.
7
+
In this page, we will explore some basic properties of networks, such as **degree**, **density**, **clustering**, and **paths / connected components**.
8
8
9
9
If you are coding alongside me, I recommend you to start a new notebook and follow the code snippets below. You can also check the [Network Fundamentals](fundamentals.qmd) page for more details on how to create graphs with `networkx`.
# Another common global measure is transitivity (ratio of triangles to connected triples)
154
+
print("Transitivity:", nx.transitivity(G_foods))
155
+
```
156
+
117
157
## Connectivity in Undirected Graphs
118
158
119
159
Connectivity is a fundamental property of graphs that describes how well the nodes are connected to each other. In an undirected graph, a graph is **connected** if there is a path between any two nodes. If a graph is not connected, it consists of multiple **connected components**, which are subgraphs in which any two nodes are connected by a path.
@@ -259,6 +299,7 @@ print("Average shortest path length of the largest strongly connected component:
259
299
260
300
## What's Next?
261
301
262
-
In the next page, you will explore a real-world network of US air travel routes. You will analyze its connectivity and identify important nodes (airports) in the network. You will also see how the structure of the network affects the flow of information (or in this case, passengers) through it.
302
+
In the next page, we will learn how to generate *synthetic* graphs (random, small-world, scale-free) and compare their properties.
0 commit comments