



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Text Reference: Section 2.1, p. 114
The purpose of this set of exercises is to show how powers of a matrix may be used to investigate graphs. Special attention is paid to airline route maps as examples of graphs.
In order to study graphs, the notion of graph must first be defined. A graph is a set of points (called vertices , or nodes ) and a set of lines called edges connecting some pairs of vertices. Two vertices connected by an edge are said to be adjacent. Consider the graph in Figure 1. Notice that two vertices may be connected by more than one edge (A are B are connected by 2 distinct edges), that a vertex need not be connected to any other vertex (D ), and that a vertex may be connected to itself (F ).
Figure 1: A Simple Graph
Another example of a graph is the route map that most airlines (or railways) produce. A copy of the northern route map for Cape Air (www.flycapeair.com/rout cc frameset.htm) from May 2001 is Figure 2. Here the vertices are the cities to which Cape Air flies, and two vertices are connected if a direct flight flies between them.
Some natural questions arise about graphs. It might be important to know if two vertices are connected by a sequence of two edges, even if they are not connected by a single edge. In Figure 1 , A and C are connected by a two-edge sequence (actually, there are four distinct ways to go from A to C in two steps). In the route map, Provincetown and Hyannis are connected by a two-edge sequence, meaning that a passenger would have to stop in Boston while flying between those cities on Cape Air. It might be important to know if it is possible to get from a vertex to another vertex. It is impossible to go from vertex D in Figure 1 to any other vertex, but a passenger on Cape Air can get from any city in their network to any other city given enough flights. But how many flights are enough? This is another issue of interest: what is the minimum number of steps to get from
Figure 2: Northern Route Map for Cape Air – May 2001
one vertex to another? What is the minimum number of steps to get from any vertex on the graph to any other? While these questions are relatively easy to answer for a small graph, as the number of vertices and edges grows, it becomes harder to keep track of all the different ways the vertices are connected. Matrix notation and computation can help to answer these questions.
The adjacency matrix for a graph with n vertices is an n n matrix whose (i; j ) entry is 1 if the ith^ vertex and j th^ vertex are connected, and 0 if they are not. If in Figure 1 A is vertex 1, B is vertex 2, etc., then the adjacency matrix for this graph is
If the vertices in the Cape Air graph respectively correspond to Boston, Hyannis, Martha’s Vineyard, Nantucket, New Bedford, Providence, and Provincetown, then the adjacency matrix for Cape Air is
To answer this question, consider the matrix S (^) k = M + M 2 : : : + M k^. The (i; j ) entry in this matrix tallies the number of ways to get from vertex i to vertex j in k steps or less. If such a trip is impossible, this entry will be zero. Thus to find the shortest number of steps between the vertices, continue to compute S (^) k as k increases; the first k for which the (i; j ) entry in S (^) k is non-zero is the shortest number of steps between i and j. Note that this process is non-constructive; that is, the shortest number of steps may be computed, but the method does not determine what those steps are.
Another question concerned whether it is possible to go from any vertex in a graph to any other. If a graph has the property that each vertex is connected to every other vertex in some number of steps, then the graph is connected.
Question : How can it be determined if a graph is connected?
This should be easy to see from a small graph, but is harder to see from the adjacency matrix. However, there is a calculation can be done. Suppose that the graph contains n vertices. Then the largest number of steps it could take to go from a vertex to any other vertex is n steps. Thus Sn = M + M 2 + : : : + M n^ can help us. If there are any zeroes in this matrix, it is impossible for some pair of vertices to connect in n steps or less, so this pair will never connect, and the graph is not connected.
Questions :
Figure 3: Northern Route Map for Big Sky Airlines – May 2001
Figure 4: Route Map for Spirit Air – May 2001
Note : You can investigate other airlines’ route maps by visting the website dir.yahoo.com/ Business and Economy/Shopping and Services/Travel and Transportation/ Airlines/. This includes links to many obscure and smaller airlines, as well as the more well known carriers.