Social Networks

14  Tree Graphs

  • Welcome
  • Introduction to Networks
    • 1  What Are Networks?
    • 2  What is A Social Network?
  • Graph Theory: The Basics
    • 3  Introduction to Graphs
    • 4  Graphs and their Subgraphs
    • 5  Types of Ties in Social Networks
    • 6  Types of Ties and Their Graphs
    • 7  Basic Graph Metrics
    • 8  Nodes and their Neighborhoods
    • 9  Nodes and their Degrees
    • 10  Degree-Based Graph Metrics
    • 11  Indirect Connections
    • 12  Directed Indirect Connections
    • 13  Graph Connectivity
    • 14  Tree Graphs
  • Matrices: The Basics
    • 15  Introduction to Matrices
    • 16  The Adjacency Matrix
    • 17  Matrix Operations: Row and Column Sums
    • 18  Basic Matrix Operations
    • 19  Matrix Multiplication
  • Motifs
    • 20  Triads
  • Centrality
    • 21  Centralities based on Degree
    • 22  Centralities based on the Geodesic Distance
    • 23  Centralities based on Shortest Paths
    • 24  The “Big Three” Centrality Metrics
    • 25  Getting Centrality from Others
  • Two-Mode Networks
    • 26  Affiliation Networks
  • Ego Networks
    • 27  Ego Network Metrics
    • 28  Collecting Ego-Network Data
    • 29  Theories of Ego Network Homogeneity
  • Subgroups and Blocks
    • 30  Clique Analysis
    • 31  Cohesive Subsets
    • 32  Equivalence and Similarity
    • 33  Local Node Similarities
  • Network Theory
    • 34  Dunbar’s Theory of Social Circles
    • 35  The Strength of Weak Ties
    • 36  Structural Holes and Brokerage
    • 37  Simmelian Tie Theory
    • 38  Dyadic Balance
    • 39  Triadic Balance
    • 40  Structural Balance
    • 41  Theories of Valenced Interactions
    • 42  Dominance Hierarchies
    • 43  The Diffusion of Innovations
    • 44  The Small World

Table of contents

  • 14.1 Properties of Tree Graphs
  • 14.2 The Line Graph
  • 14.3 The Star Graph
  • 14.4 Caterpillar Graphs

View source

14  Tree Graphs

If a graph is both connected and has no cycles, then it is tree graph (Benjamin, Chartrand, and Zhang 2017, 68). The four tree graphs with five nodes are shown in Figure 14.1. Recall from Section 11.5 in Chapter 11, that a cycle is a path (as defined in Section 11.1) that begins and ends with the same node. Thus in a tree graph, you can never start with a node and trace a sequence of distinct edges and nodes that take you back to the node you started with!

14.1 Properties of Tree Graphs

Tree graphs have the interesting property that their number of edges \(m\) is always equal to their number of nodes \(n\) minus one. Thus, if a graph is a tree graph or order five, we know it must contain four edges (it must be of size four). For instance, in Figure 14.1, all the graphs have four links. If we were to add a fifth link connecting any pair of nodes to any of the graphs, it would create a cycle (of some length) and thus the graph would no longer count as a tree graph! Try it for yourself and see.

In equation form, if \(G(n, m)\) is a tree graph, then:

\[ m = n - 1 \tag{14.1}\]

Using simple algebra, we can also solve for the order of a tree graph if we know the size:

\[ n = m + 1 \tag{14.2}\]

This equation says that the order of a tree graph is equal to the number of edges plus one.

Note that from Equation 10.4 in Section 10.5 that the sum of the degrees of an undirected graph equals twice the number of edges (\(2m\)). Applying this reasoning, we can see that there is a special formula for the sum of degrees of an undirected tree graph. The reason is that if we know that:

\[ \sum_i k_i = 2m \tag{14.3}\]

And we also know that \(m = n - 1\) as per Equation 14.1, then substituting for \(m\) in Equation 14.4, gives us:

\[ \sum_i k_i = 2(n-1) = 2n - 2 \tag{14.4}\]

Thus in a tree graph, the sum of degrees will always equal to twice the number of nodes minus two!

Tree graphs have four other unique properties.

  1. First, if \(G\) is a tree graph, then every node \(V\) in \(G\) is linked to every other node via a single path.
  2. Second, the one path connecting each pair of nodes is unique, that is, a sequence of nodes of and edges that is distinctive for that node pair and does not repeat for any other pair.
  3. Third, removing even a single edge of a tree graph disconnects the graph. Every edge of a tree graph thus counts as a bridge as discussed in Chapter 11.
  4. Fourth, following (3), if we disconnect a tree graph by removing an edge, the resulting connected components are also trees.

A disconnected graph whose components are trees is called (you guessed it) a forest. Figure 14.2 is a forest.

(a)

(b)

(c)

Figure 14.1: Tree graphs with five nodes

Figure 14.2: A Forest with ten nodes and two components

As Figure 14.1 shows, tree graphs come in different configurations, some of which are of particular note.

14.2 The Line Graph

Note for instance, that Figure 14.1(a) is just a straight path between two nodes. This graph counts as a tree as it is both connected and has no cycles. A graph like Figure 14.1(a) which are just one long path featuring some set of nodes is also called the line graph. Line graphs are distinguished by their order and can be referred as \(L_n\) where \(n\) is the number of nodes. Thus, \(L_5\) is the line graph shown in Figure 14.1(a); a line graph with five nodes.

What are line graphs useful for? Well, they can be used to model the social phenomenon known as a the “telephone game.” We can set up people in a line graph in a laboratory, have nodes pass a message, piece of gossip or a story along the line and see how different the original message relayed by \(A\) is by the time it gets to \(E\). Obviously, the longer the number of edges in the line, the more distortion we should expect at the other end.

14.3 The Star Graph

Note also the graph that is just a central node connected to all the other end-point nodes who are not themselves connected to one another, like Figure 14.1(d) also counts as a tree. This graph is sometimes called the star graph. Like line graphs, we can refer to star graphs by using a letter and a number indicating their order like \(S_n\). Thus, \(S_5\) is the star graph with five nodes as in Figure 14.1(d).

Star graphs are useful for modelling centralized systems like the airport network we saw in Chapter 1. Such hub-spoke systems feature a central node (the hub) connected to a bunch of end-point nodes not connected to one another (the spokes), as when a big airport (like LAX) sends flights to smaller regional airports. In this system, LAX is the “hub” at the center of the star and the smaller airports are the “spokes” at the end.

14.4 Caterpillar Graphs

Tree graphs with an even number of nodes can sometimes be drawn like the ones in Figure 14.3. This is a line graph on top, with edges sticking out of each node in the line graph connecting to an equal number (half the other nodes in the graph) of end point nodes.

Because of the shape they form, these tree graphs are sometimes called caterpillar graphs, with the line graph at the top playing the role of the caterpillar’s “body” and the edges incident to the end point nodes the role of the “legs.” Figure 14.3(a) shows a caterpillar graph of order six and Figure 14.3(b) shows a caterpillar graph of order eight.

(a) Six nodes

(b) Eight nodes

Figure 14.3: Caterpillar graphs

Like other graphs, tree graphs can be directed and undirected. The graphs shown in Figure 14.1 and Figure 14.3 are undirected trees.

Benjamin, Arthur, Gary Chartrand, and Ping Zhang. 2017. The Fascinating World of Graph Theory. Princeton University Press.
13  Graph Connectivity
15  Introduction to Matrices
Copyright 2023, Omar Lizardo & Isaac Jilbert