Daily tweets about networks, graph theory, and related topics from @JohnDCook

Joined July 2013
Breadth-first search runs in time linear in the size of the adjacenty-list representation of a graph.
4
1,080
In many real-world networks, average distances are on the order of the log of the number of vertices.
2
9
1,431
Two nodes x and y in a directed graph are strongly connected if there is a path from x to y and a path from y to x.
4
1,388
Two nodes x and y in a directed graph are weakly connected if there is a path from x to y or from y to x.
6
1,360
Gallery of named graphs altermundus.fr/downloads/doc… // 104-page pdf from Alain Matthes
5
1,473
A connected graph contains an Eulerian path iff there are zero or two nodes of odd degree.
2
13
1,600
A Hamiltonian path visits each vertex in a graph exactly once.
2
18
1,476
An Eulerian path traverses each edge in a graph exactly once.
5
16
1,474
Some authors say graph theory started with Euler's solution to the Kӧnigsberg bridge problem in 1736.
11
1,483
The diameter of a connected graph is the length of the longest geodesic path in the graph.
2
16
1,634
If A is the adjacency matrix of a graph, the number of walks from i to j of length r is the ij-th entry of A^r.
9
1,504
The density of a graph is the ratio of the actual number of edges to the maximum possible number of edges.
2
13
1,498
The degree of a vertex is the number of edges connected to it.
2
11
1,537
The number of spanning trees in a connected network w/ n nodes equals the product of the nonzero eigenvalues of its Laplacian, divided by n.
3
16
1,552