Skip to main content
Mathematics LibreTexts

12.1: Graph Basics

  • Page ID
    129669
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    A close-up view of three people holding cell phones.
    Figure 12.2: Cell phone networks connect individuals. (credit: "Business people using their phones" by Rawpixel Ltd./Flickr, CC BY 2.0)
    Learning Objectives
    1. Identify parts of a graph.
    2. Model applications of graph basics.

    When you hear the word, graph, what comes to mind? You might think of the xyxy-coordinate system you learned about earlier in this course, or you might think of the line graphs and bar charts that are used to display data in news reports. The graphs we discuss in this chapter are probably very different from what you think of as a graph. They look like a bunch of dots connected by short line segments. The dots represent a group of objects and the line segments represent the connections, or relationships, between them. The objects might be bus stops, computers, Snapchat accounts, family members, or any other objects that have direct connections to each other. The connections can be physical or virtual, formal or casual, scientific or social. Regardless of the kind of connections, the purpose of the graph is to help us visualize the structure of the entire network to better understand the interactions of the objects within it.

    Parts of a Graph

    In a graph, the objects are represented with dots and their connections are represented with lines like those in Figure 12.3. Figure 12.3 displays a simple graph labeled G and a multigraph labeled H. The dots are called vertices; an individual dot is a vertex, which is one object of a set of objects, some of which may be connected. We often label vertices with letters. For example, Graph G has vertices a, b, c, and d, and Multigraph H has vertices, e, f, g, and h. Each line segment or connection joining two vertices is referred to as an edge. H is considered a multigraph because it has a double edge between f and h, and a double edge between h and g. Another reason H is called a multigraph is that it has a loop connecting vertex e to itself; a loop is an edge that joins a vertex to itself. Loops and double edges are not allowed in a simple graph.

    To sum up, a simple graph is a collection of vertices and any edges that may connect them, such that every edge connects two vertices with no loops and no two vertices are joined by more than one edge. A multigraph is a graph in which there may be loops or pairs of vertices that are joined by more than one edge. In this chapter, most of our work will be with simple graphs, which we will call graphs for convenience.

    Two graphs are labeled graph G and multigraph H. Graph G has four vertices, a, b, c, and d. Two edges connect a with b and c. Two edges connect c with b and d. Multigraph H has four vertices, e, f, g, and h. A double edge connects f and h. A double edge connects h and g. Two edges connect e with f and h. A loop connects vertex e to itself.
    Figure 12.3: A Graph and a Multigraph

    It is not necessary for the edges in a graph to be straight. In fact, you can draw an edge any way you want. In graph theory, the focus is on which vertices are connected, not how the connections are drawn (see Figure 12.4). In a graph, each edge can be named by the two letters of the associated vertices. The four edges in Graph X in Figure 12.4 are ab, ac, ad, and ae. The order of the letters is not important when you name the edge of a graph. For example, ab refers to the same edge as ba.

    Checkpoint

    A graph may have vertices that are not joined to other vertices by edges, such as vertex f in Graph X in Figure 12.4, but any edge must have a vertex at each end.

    Two graphs are labeled graph X. In each graph, six vertices are present: a, b, c, d, e, and f. Edges connect a with b, c, d, and e. In the first graph, the edges are straight lines. In the second graph, the edges are curved.
    Figure 12.4: Different Representations of the Same Graph
    Example 12.1: Identifying Edges and Vertices

    Name all the vertices and edges of graph F in Figure 12.5.

    A graph labeled graph F. The graph has five vertices: V, W, X, Y, and Z. Four edges connect X with V, W, Y, and Z. Two edges connect W with V and Z.
    Figure 12.5 Graph F
    Answer

    The vertices are v, w, x, y, and z. The edges are vw, vx, wx, wz, xy, and xz.

    Checkpoint

    When listing the vertices and edges in a graph, work in alphabetical order to avoid accidentally listing the same item twice. When you are finished, count the number of vertices or edges you listed and compare that to the number of vertices or edges on the graph to ensure you didn’t miss any.

    Your Turn 12.1
    Name all the vertices and edges of Graph A.
    A graph labeled graph A. The graph has five vertices, p, q, r, s, and t. Edges connect p with q, r, and t. Edges connect r with q and s. Edges connect s with q and t. An edge connects q with t.
    Figure 12.6: Graph A

    Since the purpose of a graph is to represent the connections between objects, it is very important to know if two vertices share a common edge. The two vertices at either end of a given edge are referred to as neighboring, or adjacent. For example, in Figure 12.5, vertices x and w are adjacent, but vertices y and w are not.

    Example 12.2: Identifying Vertices That Are Not Adjacent

    Name all the pairs of vertices of graph F in Figure 12.5 that are not adjacent.

    Answer

    The pairs of vertices that are not adjacent in graph F are v and y, v and z, w and y, and y and z.

    Your Turn 12.2

    Name all the pairs of vertices of graph A in Figure 12.6 that are not adjacent.

    People in Mathematics: Sergey Brin and Laurence Page

    The “Google boys,” Sergey Brin and Laurence Page, transformed the World Wide Web in 1998 when they used the mathematics of graph theory to create an algorithm called Page Rank, which is known as the Google Search Engine today. The two computer scientists identified webpages as vertices and hyperlinks on those pages as edges because hyperlinks connect one website to the next. The number of edges influences the ranking of a website on the Google Search Engine because the websites with more links to “credible sources” are ranked higher. ("Page Rank: The Graph Theory-based Backbone of Google," September 20, 2011, Cornell University, Networks Blog.

    Analyzing Geographical Maps with Graphs

    A map shows dots representing the flight connections from a particular airport.
    Figure 12.7: Commercial airlines' route systems create a global network.

    When graphs are used to model and analyze real-world applications, the number of edges that meet at a particular vertex is important. For example, a graph may represent the direct flight connections for a particular airport as in Figure 12.8. Representing the connections with a graph rather than a map shifts the focus away from the relative positions and toward which airports are connected. In Figure 12.8, the vertices are the airports, and the edges are the direct flight paths. The number of flight connections between a particular airport and other South Florida airports is the number of edges meeting at a particular vertex. For example, Key West has direct flights to three of the five airports on the graph. In graph theory terms, we would say that vertex FYW has degree 3. The degree of a vertex is the number of edges that connect to that vertex.

    A graph represents the direct flights between South Florida airports. The graph has five vertices. Edges from the vertex, Tampa T P A connect with Key West E Y W, Miami M I A, Fort Lauderdale F L L, and West Palm Beach P B I. An edge connects Fort Lauderdale with Key West. An edge connects Miami with Key West.
    Figure 12.8: Direct Flights between South Florida Airports
    Example 12.3: Determining the Degree of a Vertex

    Determine the degree of each vertex of Graph J in Figure 12.8. If graph J represents direct flights between a set of airports, do any of the airports have direct flights to two or more of the other cities on the graph?

    A graph labeled graph J. The graph has five vertices, a, b, c, d, and e. Edges connect a with b, c, and d. An edge connects c with d.
    Figure 12.9 Graph J
    Answer

    For each vertex, count the number of edges that meet at that vertex. This value is the degree of the vertex. In Figure 12.10, the dashed edges indicate the edges that meet at the marked vertex.

    Five graphs labeled graph J. In the first graph vertex a has degree 3. The graph has five vertices, a, b, c, d, and e. Dotted edges from a connect with b, c, and d. An edge connects c with d. In the second graph vertex b has degree 1. The graph has five vertices, a, b, c, d, and e. Edges from a connect with b, c, and d. An edge connects c with d. The edge connecting b and a is dotted. In the third graph vertex c has degree 2. The graph has five vertices, a, b, c, d, and e. Edges from a connect with b, c, and d. An edge connects c with d. The edges connecting a and c and c and d are dotted. In the fourth graph vertex d has degree 2. The graph has five vertices, a, b, c, d, and e. Edges from a connect with b, c, and d. An edge connects c with d. The edges connecting c and d and a and d are dotted. In the fifth graph vertex e has degree 0. The graph has five vertices, a, b, c, d, and e. Edges from a connect with b, c, and d. An edge connects c with d.
    Figure 12.10 Degrees of Vertices of Graph J
    Vertex a has degree 3, vertex b has degree 1, vertices c and d each have degree 2, and vertex e has degree 0. Airports a, c, and d have direct flights to two or more of the other airports.
    Your Turn 12.3

    Name a vertex of Graph A in Figure 12.6 with degree 4.

    Graphs are also used to analyze regional boundaries. The states of Utah, Colorado, Arizona, and New Mexico all meet at a single point known as the “Four Corners,” which is shown in the map in Figure 12.11.

    A map of the USA with the four corners region highlighted. It includes Utah, Colorado, Arizona, and New Mexico.
    Figure 12.11: Map of the Four Corners

    In Figure 12.12, each vertex represents one of these states, and each edge represents a shared border. States like Utah and New Mexico that meet at only a single point are not considered to have a shared border. By representing this map as a graph, where the connections are shared borders, we shift our perspective from physical attributes such as shape, size and distance, toward the existence of the relationship of having a shared boundary.

    A graph of four corner states. The graph shows four edges and four vertices forming a rectangle. The vertices are Utah, Colorado, Arizona, and New Mexico.
    Figure 12.12: Graph of the Shared Boundaries of Four Corners States
    Example 12.4: Graphing the Midwestern States

    A map of the Midwest is given in Figure 12.13. Create a graph of the region in which each vertex represents a state and each edge represents a shared border.

    A partial map of the USA with the midwestern states. The Midwestern states are North Dakota, South Dakota, Nebraska, Kansas, Minnesota, Iowa, Missouri, Wisconsin, Illinois, Indiana, Michigan, and Ohio.
    Figure 12.13 Map of Midwestern States
    Answer

    Step 1: For each state, draw and label a vertex as in Figure 12.14.

    A partial map of the USA with the midwestern states. The Midwestern states are North Dakota (N D), South Dakota (S D), Nebraska (N E), Kansas (K S), Minnesota (M N), Iowa (I A), Missouri (M O), Wisconsin (W I), Illinois (I L), Indiana (I N), Michigan (M I), and Ohio (O H).
    Figure 12.14 Vertex Assigned to Each Midwestern State
    Step 2: Draw edges between any two states that share a common land border as in Figure 12.15.
    A partial map of the USA with the midwestern states. The Midwestern states are North Dakota (N D), South Dakota (S D), Nebraska (N E), Kansas (K S), Minnesota (M N), Iowa (I A), Missouri (M O), Wisconsin (W I), Illinois (I L), Indiana (I N), Michigan (M I), and Ohio (O H). Edges from N D connect with S D and M N. Edges from S D connect with N E, I A, and M N. Edges from M N connect with I A and W I. Edges from N E connect with K S, M O, and I A. Edges from I A connect with M O and I L. Edges from W I connect with I A and I L. An edge from K S connects with M O. An edge from M O connects with I L. An edge from I L connects with I N. Edges from I N connect with M I and O H. An edge from M I connects with O H.
    Figure 12.15: Edge Assigned to Each Pair of Midwestern States with Common Border

    The graph is given in Figure 12.16.

    A graph represents common boundaries between midwestern states. Edges from M N connect with I A and W I. Edges from N E connect with K S, M O, and I A. Edges from I A connect with M O and I L. Edges from W I connect with I A and I L. An edge from K S connects with M O. An edge from M O connects with I L. An edge from I L connects with I N. Edges from I N connect with M I and O H. An edge from M I connects with O H.
    Figure 12.16: Final Graph Representing Common Boundaries between Midwestern States
    Your Turn 12.4
    The figure shows a map of the Island of Oahu in the State of Hawaii divided into regions. Draw a graph in which each vertex represents one of the regions and each edge represents a shared land border.
    A map shows the regions of Oahu. The regions are North Shore, Leeward Coast, Central, Windward Coast, and South.
    Figure 12.17: Map of Oahu

    Graphs of Social Interactions

    Geographical maps are just one of many real-world scenarios which graphs can depict. Any scenario in which objects are connected to each other can be represented with a graph, and the connections don’t have to be physical. Just think about all the connections you have to people around the world through social media! Who is in your network of Twitter followers? Whose Snapchat network are you connected to?

    Example 12.5: Graphing Chloe’s Roblox Friends

    Roblox is an online gaming platform. Chloe is interested to know how many people in her network of Roblox friends are also friends with each other so she polls them. Explain how a graph or multigraph might be drawn to model this scenario by identifying the objects that could be represented by vertices and the connections that could be represented by edges. Indicate whether a graph or a multigraph would be a better model.

    Answer

    The objects that are represented with vertices are Roblox friends. A Roblox friendship between two friends will be represented as an edge between a pair of vertices. There will be no double edges because it is not possible for two friends to be linked twice in Roblox; they are either friends or they are not. Also, a player cannot be a friend to themself, so there is no need for a loop. Since there are no double edges or loops, this is best represented as a graph.

    Your Turn 12.5

    In a particular poker tournament, five groups of five players will play at a table until one player wins, then the five winning players will play each other at a table in a final round. Explain how a graph or multigraph might be drawn to model this scenario by identifying the objects that could be represented by vertices and the connections that could be represented by edges. Indicate whether a graph or a multigraph would be a better model.

    Who Knew?: Using Graph Theory to Reduce Internet Fraud

    Could graphs be used to reduce Internet fraud? At least one researcher thinks so. Graph theory is used every day to analyze our behavior, particularly on social network sites. Alex Buetel, a computer scientist from Carnegie Mellon University in Pittsburgh, Pennsylvania, published a research paper in 2016 that discussed the possibilities of distinguishing the normal interactions from those that might be fraudulent using graph theory. Buetel wrote, “To more effectively model and detect abnormal behavior, we model how fraudsters work, catching previously undetected fraud on Facebook, Twitter, and Tencent Weibo and improving classification accuracy by up to 68%.” In the same paper, the researcher discusses how similar techniques can be used to model many other applications and even, “predict why you like a particular movie.” (Alex Beutel, "User Behavior Modeling with Large-Scale Graph Analysis," http://reports-archive.adm.cs.cmu.ed...-CS-16-105.pdf, May 2016, CMU-CS-16-105, Computer Science Department, School of Computer Science, Carnegie Mellon University, Pittsburgh, PA)

    Check Your Understanding

    1.
    A simple graph has no loops.
    1. True
    2. False
    2.
    It is not possible to have a vertex of degree 0.
    1. True
    2. False
    3.
    A graph with three vertices has at most three edges.
    1. True
    2. False
    4.
    A multigraph with three vertices has at most three edges.
    1. True
    2. False
    5.
    If vertex a is adjacent to vertex b, and vertex b is adjacent to vertex c, then vertex a must be adjacent to vertex c.
    1. True
    2. False

    Section 12.1 Exercises

    For the following exercises, use the figure showing Diagrams A, B, C, and D.
    Four diagrams are labeled Diagram A, Diagram B, Diagram C, and Diagram D. Diagram A has two vertices. The vertices are connected by an edge. One of the vertices has a loop. Diagram B has four vertices. Two vertices are connected by an edge. The remaining two vertices are connected by an edge to form an X. Diagram C has two vertices. The vertices have a double edge. Diagram D has four vertices. The vertices are connected in a cyclic form.
    1.
    Identify any multigraphs.
    2.
    Identify any graphs.
    3.
    Identify any multigraph that has a loop.
    4.
    Identify any multigraph that has a double edge.
    For the following exercises, use the figure showing Graphs S, T, U, V, and W.
    Five graphs are labeled graph S, graph T, graph U, graph V, and graph W. Graph S has five vertices: a, b, c, d, and e. The edges connect a b, a c, b c, c d, c e, and d e. Graph T has four vertices: a, b, d, and e. The edges connect a b, a e, b d, and d e. Graph U has 6 vertices: a, b, f, c, d, and e. The vertices connect a b, a f, f d, b c, c d, d e, c e, and a c. Graph V has four vertices: a, b, d, and e. The edges connect a b, a d, a e, b d, and d e. Graph W has four vertices: a, b, d, and e. The edges connect a b, a d, and d e.
    5.
    Determine the number of vertices in Graph T.
    6.
    Determine the number of vertices in Graph U.
    7.
    Identify the graph with the most vertices.
    8.
    Identify the graphs with four vertices.
    9.
    Identify the graph with the most edges.
    10.
    Identify the graph with the fewest edges.
    11.
    Name the vertices in Graph S.
    12.
    Name the vertices in Graph V.
    13.
    Determine the number of edges in Graph U.
    14.
    Determine the number of edges in Graph T.
    15.
    Name the edges in Graph V.
    16.
    Name the edges in Graph W.
    17.
    Identify any pairs of vertices in Graph T that are not adjacent.
    18.
    Identify any vertices in Graph V that are not adjacent.
    19.
    Find the degree of vertex a in graph U.
    20.
    Find the degree of vertex a in graph S.
    21.
    Which two graphs have a vertex of degree 4?
    For the following exercises, use the figure showing Graphs A, B, C, and D.
    Four graphs are labeled graph A, graph B, graph C, and graph D. Graph A shows edges connecting the vertices: v q, v p, v u, v t, v s and v r. Graph B shows edges connecting the vertices: p q, q s, s t, t p, v u, and v r. Graph C shows edges connecting the vertices: p q, p u, u t, u v, t s, q s, and p t. Graph D shows edges connecting the vertices: v p, v q, v u, v t, v r, v s, p q, u t, and r s.
    22.
    Identify the graph with 1 vertex of degree 6 and 6 vertices of degree 1.
    23.
    Identify the graph with 1 vertex of degree 6 and 6 vertices of degree 2.
    24.
    Identify the graph with exactly 1 vertex of degree 0.
    25.
    Identify the graph with exactly 2 vertices of degree 1.
    26.
    Name all the pairs of adjacent vertices in Graph B.
    27.
    Name all the pairs of adjacent vertices in Graph A.
    28.
    Identify the graph in which the sum of the degrees of the vertices is 14.
    For each of the following exercises, a scenario is given. Explain how a graph or multigraph might be drawn to model the scenario by identifying the objects that could be represented by vertices and the connections that could be represented by edges. Indicate whether a graph or a multigraph would be a better model.
    29.
    The Centers for Disease Control and Prevention (CDC) is tracking the spread of a virus. The CDC is attempting to determine where the virus began by identifying where each known carrier contracted the virus.
    30.
    The faculty members in a college mathematics department have a “telephone tree” that assigns each faculty member two other faculty members to call with information in the event of an emergency. The chairperson of the department contacts two faculty members. Each of these faculty members contacts two faculty members, and so on, until all faculty members have been notified.
    31.
    There is a theory that any two people on earth are no more than six social connections apart, which is known as “six degrees of separation” or the “six handshake rule.” It means that there is a chain of a “friend of a friend” that connects any two people through at most six steps.
    32.
    The U.S. Postal Service has a network of post offices that move mail around the United States. Mail trucks from one post office follow routes deliver mail to other locations. These mail trucks also pick up mail to bring back to their home post office.
    In the following exercises , draw a graph to represent the given scenario.
    33.
    Draw a graph to model the scenario described in Your Turn 12.5.
    34.
    In the game of chess, a king can move one space in any direction, vertically, horizontally, or diagonally, as indicated in the figure. Draw a graph to represent the possible movements of a king on a three-by-three section of a chess board such that each edge represents one move, and each vertex represents a position where the king might be at the beginning or end of a turn. Assume that the king can have unlimited turns.
    A 3 by 3 square chess board. The king is in the center square. Arrows from the king point to all the adjacent squares.
    35.
    Chloe is interested to know how many in her network of Roblox friends are also friends with each other, so she polls them. The following is a list of each of Chloe’s friends and their common friends. Create a graph of the Roblox friends in Chloe’s network, including Chloe.
    • Aria is friends with no one else in Chloe’s network.
    • Benicio is friends with Dakshayani, Eun-ah, and Fukashi.
    • Dakshayani is friends with Benicio.
    • Eun-ah is friends with Benicio and Fukashi.
    • Fukashi is friends with Benicio and Eun-ah.

    This page titled 12.1: Graph Basics is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.

    • Was this article helpful?