Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What is the degree of a vertex in an undirected graph?
Not quite. Try another option.
Answer: The number of edges incident with the vertex
The degree of a vertex is the number of edges incident with it. A loop contributes to the degree.
Question 2 of 60 · Graph terminologies · Easy
What are two vertices called if an edge connects them?
Not quite. Try another option.
Answer: Adjacent vertices
Two vertices are adjacent when they are joined by an edge.
Question 3 of 60 · Graph terminologies · Easy
A vertex with degree is called what?
Not quite. Try another option.
Answer: An isolated vertex
An isolated vertex has no incident edges, so its degree is .
Question 4 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Easy
How many edges does the complete graph have?
Not quite. Try another option.
Answer:
A complete graph has edges. Thus, has edges.
Question 5 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Easy
Which statement describes a cycle graph?
Not quite. Try another option.
Answer: Every vertex has degree
In a cycle graph, each vertex is connected to exactly two other vertices.
Question 6 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Easy
What is a regular graph?
Not quite. Try another option.
Answer: A graph whose vertices have equal degree
A graph is regular when every vertex has the same degree.
Question 7 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Easy
How is a wheel graph formed from a cycle graph?
Not quite. Try another option.
Answer: By adding a central vertex adjacent to every cycle vertex
A wheel graph consists of a cycle together with a central vertex connected to every vertex on the cycle.
Question 8 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Easy
How many vertices does the three-dimensional cube graph have?
Not quite. Try another option.
Answer:
The three-dimensional cube graph has vertices.
Question 9 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Easy
What property defines a bipartite graph?
Not quite. Try another option.
Answer: Its vertices can be divided into two sets with edges only between the sets
In a bipartite graph, the vertex set is divided into two disjoint sets, and every edge joins vertices from different sets.
Question 10 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Easy
How many edges are in the complete bipartite graph ?
Not quite. Try another option.
Answer:
The graph has edges. Therefore, has edges.
Question 11 of 60 · Representing graphs · Easy
Which representation lists the neighbors of each vertex?
Not quite. Try another option.
Answer: Adjacency list
An adjacency list stores each vertex together with the vertices adjacent to it.
Question 12 of 60 · Adjacency and incidence matrix · Easy
For a simple undirected graph, what does an entry in an adjacency matrix indicate?
Not quite. Try another option.
Answer: The two corresponding vertices are adjacent
An adjacency matrix entry is when an edge connects the corresponding pair of vertices.
Question 13 of 60 · Adjacency and incidence matrix · Easy
What is always true about the adjacency matrix of a simple undirected graph?
Not quite. Try another option.
Answer: It is symmetric
If vertex is adjacent to vertex , then is adjacent to , so the matrix is symmetric.
Question 14 of 60 · Adjacency and incidence matrix · Easy
In the incidence matrix of a simple undirected graph, what do the columns usually represent?
Not quite. Try another option.
Answer: Edges
In an incidence matrix, rows usually represent vertices and columns represent edges.
Question 15 of 60 · Graph isomorphism · Easy
When are two graphs isomorphic?
Not quite. Try another option.
Answer: When a vertex correspondence preserves adjacency
Isomorphic graphs have a one-to-one correspondence between vertices that preserves which vertices are adjacent.
Question 16 of 60 · Graph isomorphism · Easy
Which property must be the same for two isomorphic graphs?
Not quite. Try another option.
Answer: Number of vertices
Isomorphic graphs must have the same number of vertices and edges, even if their drawings or labels differ.
Question 17 of 60 · Path and connectivity for undirected graphs and digraphs · Easy
What is a path in a graph?
Not quite. Try another option.
Answer: A sequence of vertices connected by edges
A path is a sequence of vertices in which each consecutive pair is connected by an edge.
Question 18 of 60 · Path and connectivity for undirected graphs and digraphs · Easy
When is an undirected graph connected?
Not quite. Try another option.
Answer: When a path exists between every pair of vertices
An undirected graph is connected if every vertex can be reached from every other vertex by a path.
Question 19 of 60 · Path and connectivity for undirected graphs and digraphs · Easy
When is a directed graph strongly connected?
Not quite. Try another option.
Answer: When every vertex is reachable from every other vertex by directed paths
A digraph is strongly connected when directed paths exist in both directions between every pair of vertices.
Question 20 of 60 · Dijkstra's algorithm for shortest path problem · Easy
Which condition is required for Dijkstra's shortest path algorithm to work correctly?
Not quite. Try another option.
Answer: All edge weights must be nonnegative
Dijkstra's algorithm correctly finds shortest paths when no edge has a negative weight.
Question 21 of 60 · Graph terminologies · Medium
A simple undirected graph has 12 vertices, each of degree 5. How many edges does the graph contain?
Not quite. Try another option.
Answer: 30 edges
By the handshaking lemma, . Therefore, .
Question 22 of 60 · Graph terminologies · Medium
A simple graph has 8 vertices and 13 edges. What is the number of edges in its complement?
Not quite. Try another option.
Answer: 15 edges
A simple graph on 8 vertices can have edges. Its complement therefore has edges.
Question 23 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Medium
A complete graph has 45 edges. How many vertices does it have?
Not quite. Try another option.
Answer: 10 vertices
For , the number of edges is . Solving gives .
Question 24 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Medium
A wheel graph is formed by adding one hub vertex adjacent to every vertex of . Which statement describes the resulting graph?
Not quite. Try another option.
Answer: It has 6 vertices and 10 edges
The cycle contributes 5 vertices and 5 edges. The hub adds one vertex and 5 spokes, giving 6 vertices and 10 edges.
Question 25 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Medium
Which pair gives the degree of each vertex and the total number of edges in the 3-dimensional cube graph ?
Not quite. Try another option.
Answer: Degree 3 and 12 edges
has vertices, each of degree 3. Hence .
Question 26 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Medium
In the complete bipartite graph , which statement is correct?
Not quite. Try another option.
Answer: It has 8 vertices and 15 edges
has vertices and edges. Thus, has 8 vertices and edges.
Question 27 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Medium
A connected graph contains exactly one cycle, and that cycle has length 7. Which conclusion is necessarily true?
Not quite. Try another option.
Answer: The graph is not bipartite
A graph is bipartite exactly when it contains no odd cycle. A cycle of length 7 is odd, so the graph is not bipartite.
Question 28 of 60 · Representing graphs · Medium
An undirected graph has adjacency list , , , and . Which edge set represents the graph?
Not quite. Try another option.
Answer:
Each undirected adjacency appears in both endpoint lists. The distinct edges are , , , and .
Question 29 of 60 · Adjacency and incidence matrix · Medium
The adjacency matrix of a simple undirected graph is What are the degrees of vertices 1 through 4?
Not quite. Try another option.
Answer:
In a simple undirected graph, each row sum gives the corresponding vertex degree. The row sums are 2, 3, 2, and 1.
Question 30 of 60 · Adjacency and incidence matrix · Medium
The incidence matrix of a simple undirected graph has 7 rows and 10 columns. What do these dimensions indicate?
Not quite. Try another option.
Answer: 7 vertices and 10 edges
Using the standard vertex-edge incidence matrix, rows correspond to vertices and columns correspond to edges.
Question 31 of 60 · Adjacency and incidence matrix · Medium
For a loop-free directed graph, the adjacency matrix uses when there is an arc from vertex to vertex . What does the sum of column represent?
Not quite. Try another option.
Answer: The in-degree of vertex
Each 1 in column represents an arc entering vertex , so the column sum is its in-degree.
Question 32 of 60 · Graph isomorphism · Medium
Graph has edges , and graph has edges . Which mapping is an isomorphism from to ?
Not quite. Try another option.
Answer:
Under this mapping, the edges become , exactly the edge set of .
Question 33 of 60 · Graph isomorphism · Medium
Two simple graphs have the same degree sequence . One graph is , while the other consists of two disjoint triangles. Why are they not isomorphic?
Not quite. Try another option.
Answer: They have different connectivity
is connected, whereas two disjoint triangles have two connected components. Isomorphism preserves connectivity.
Question 34 of 60 · Path and connectivity for undirected graphs and digraphs · Medium
In a graph with edges , consider the sequence . How should this sequence be classified?
Not quite. Try another option.
Answer: A trail but not a path
The sequence uses distinct edges , so it is a trail. Vertex repeats, so it is not a path.
Question 35 of 60 · Path and connectivity for undirected graphs and digraphs · Medium
A connected graph has 9 vertices and 9 edges, with exactly one cycle. An edge on that cycle is removed. What is true of the resulting graph?
Not quite. Try another option.
Answer: It remains connected and becomes a tree
Removing an edge from the unique cycle does not disconnect the graph. The result has 9 vertices and 8 edges, so it is a tree.
Question 36 of 60 · Path and connectivity for undirected graphs and digraphs · Medium
A digraph has arcs , , , and . Which statement is correct?
Not quite. Try another option.
Answer: It is weakly connected but not strongly connected
Ignoring directions gives a connected graph. However, vertex has no directed route back to the other vertices, so the digraph is not strongly connected.
Question 37 of 60 · Path and connectivity for undirected graphs and digraphs · Medium
An undirected connected graph has a bridge . What happens when is removed?
Not quite. Try another option.
Answer: The number of components increases
A bridge is an edge whose removal disconnects its component. Since the graph is connected, removing the bridge increases the number of components.
Question 38 of 60 · Dijkstra's algorithm for shortest path problem · Medium
A weighted undirected graph has edges , , , , , , and . What is the shortest distance from to ?
Not quite. Try another option.
Answer: 7
The shortest route is , with total weight .
Question 39 of 60 · Dijkstra's algorithm for shortest path problem · Medium
During Dijkstra's algorithm, vertex has finalized distance 6. An edge from to an unvisited vertex has weight 4, while the current tentative distance of is 13. What is the updated distance of ?
Not quite. Try another option.
Answer: 10
Relaxing the edge gives . Since , the tentative distance of is updated to 10.
Question 40 of 60 · Dijkstra's algorithm for shortest path problem · Medium
Why can the standard Dijkstra's algorithm fail when a graph contains a negative-weight edge?
Not quite. Try another option.
Answer: A finalized distance may later decrease
Dijkstra's algorithm assumes that once a minimum tentative distance is finalized, it cannot improve. A negative edge can violate this assumption.
Question 41 of 60 · Graph terminologies · Hard
Which of the following nonincreasing sequences is graphical for a simple graph on six vertices?
Not quite. Try another option.
Answer:
Applying the Havel-Hakimi algorithm reduces to , then to , which is graphical. The other sequences violate parity or degree constraints.
Question 42 of 60 · Graph terminologies · Hard
A simple graph has ten vertices: six vertices have degree , and four vertices have degree . How many edges does the line graph have?
Not quite. Try another option.
Answer:
Edges of correspond to pairs of incident edges in . Thus .
Question 43 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Hard
Let be formed by adjoining one hub vertex to every vertex of the cycle , where . For which value of is regular?
Not quite. Try another option.
Answer: Only
The hub has degree , while each rim vertex has degree . These degrees are equal only when , giving .
Question 44 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Hard
In the -dimensional cube graph , what are, respectively, the number of shortest paths and the maximum number of internally vertex-disjoint paths between two antipodal vertices?
Not quite. Try another option.
Answer:
A shortest antipodal path flips all five coordinates in any order, giving paths. Since is -vertex-connected, the maximum number of internally vertex-disjoint antipodal paths is .
Question 45 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Hard
How many distinct spanning trees does the complete bipartite graph have?
Not quite. Try another option.
Answer:
The number of spanning trees of is . Hence has spanning trees.
Question 46 of 60 · Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite · Hard
A simple graph on nine vertices is regular and isomorphic to its complement. Which pair gives the degree of each vertex and the number of edges of ?
Not quite. Try another option.
Answer:
If is -regular, its complement is -regular. Isomorphism requires , so . The handshake lemma gives .
Question 47 of 60 · Representing graphs · Hard
Let be the adjacency matrix of a graph under its original labeling. A new labeling is specified by a permutation matrix whose th column is the standard basis vector corresponding to the old label of new vertex . What is the adjacency matrix under the new labeling?
Not quite. Try another option.
Answer:
The entry must equal the old adjacency entry between the old labels assigned to new vertices and . This is exactly the entry of .
Question 48 of 60 · Adjacency and incidence matrix · Hard
Let be the adjacency matrix of the cycle . What is the value of the entry ?
Not quite. Try another option.
Answer:
counts length- walks from vertex to the opposite vertex . Of the direction sequences on , exactly half finish at the opposite vertex, giving .
Question 49 of 60 · Adjacency and incidence matrix · Hard
An undirected graph has vertices, edges, and connected components. After assigning an arbitrary orientation to every edge, let be its oriented incidence matrix over . What are and ?
Not quite. Try another option.
Answer:
For an oriented incidence matrix, . Rank-nullity then gives .
Question 50 of 60 · Adjacency and incidence matrix · Hard
A simple graph has edges, degree sequence , and adjacency matrix satisfying . How many distinct -cycles does the graph contain?
Not quite. Try another option.
Answer:
Using , the degree term is . Thus , so .
Question 51 of 60 · Graph isomorphism · Hard
Graph is obtained from by adding chords and . Graph is obtained from by adding chords and . Both graphs use the cyclic order . Which invariant proves that and are not isomorphic?
Not quite. Try another option.
Answer: The edges induced by degree- vertices
In , the four degree- vertices induce a -cycle with four edges. In , the four degree- vertices induce two disjoint edges. This isomorphism-invariant difference proves nonisomorphism.
Question 52 of 60 · Graph isomorphism · Hard
Let have edge set and let have edge set . Which tuple defines an isomorphism ?
Not quite. Try another option.
Answer:
Under this mapping, the triangle maps to the triangle , while edges , , and map to , , and , respectively.
Question 53 of 60 · Path and connectivity for undirected graphs and digraphs · Hard
In , let belong to the part of size and belong to the part of size . What is the maximum number of pairwise internally vertex-disjoint - paths?
Not quite. Try another option.
Answer:
There is the direct edge and three additional internally disjoint paths using the other three vertices in the part containing . No larger family exists because removing the four-vertex part disconnects the graph.
Question 54 of 60 · Path and connectivity for undirected graphs and digraphs · Hard
The condensation of a digraph has vertices and arcs , , , , , and . What is the minimum number of arcs that must be added to make the original digraph strongly connected?
Not quite. Try another option.
Answer:
The condensation DAG has three source components, , and one sink component, . The minimum required number is the maximum of the source and sink counts, namely .
Question 55 of 60 · Path and connectivity for undirected graphs and digraphs · Hard
A finite digraph has a condensation DAG containing exactly one source strongly connected component . Which conclusion is necessarily true?
Not quite. Try another option.
Answer: Every vertex of can reach every vertex
In a finite DAG, every vertex is reachable from some source. If the source is unique, it reaches every component. Strong connectivity within then lets every vertex of reach every vertex of the digraph.
Question 56 of 60 · Dijkstra's algorithm for shortest path problem · Hard
Consider the directed weighted graph with arcs , , , , , , , and . What are the shortest distance from to and the number of distinct shortest - paths?
Not quite. Try another option.
Answer:
The paths and both have weight . Every other listed route to has greater weight.
Question 57 of 60 · Dijkstra's algorithm for shortest path problem · Hard
A directed graph has arcs , , , , and . If standard Dijkstra's algorithm finalizes vertices and stops when is extracted, what distance does it report for , and what is the true shortest distance?
Not quite. Try another option.
Answer:
Dijkstra finalizes at distance and then extracts at distance . However, the path has weight , showing why negative edges invalidate the algorithm.
Question 58 of 60 · Dijkstra's algorithm for shortest path problem · Hard
Dijkstra's algorithm is run on a graph with nonnegative edge weights, including zero-weight edges, and equal tentative distances are broken arbitrarily. Which property is guaranteed?
Not quite. Try another option.
Answer: Settled distances are nondecreasing
Dijkstra always extracts a vertex of minimum tentative distance, so extracted distances cannot decrease. Ties can change both the settled order and the predecessor tree.
Question 59 of 60 · Dijkstra's algorithm for shortest path problem · Hard
Which transformation of all edge weights is guaranteed to preserve the complete set of shortest paths between every ordered pair of vertices in a nonnegatively weighted graph?
Not quite. Try another option.
Answer: Multiply every weight by the same positive constant
Positive scaling multiplies every path weight by the same factor and therefore preserves all comparisons and ties. Adding a constant favors paths with fewer edges, while the other transformations can also change path ordering.
Question 60 of 60 · Path and connectivity for undirected graphs and digraphs · Hard
In an undirected graph, two nonadjacent vertices and are connected by at most four pairwise internally vertex-disjoint - paths, and a family of four such paths exists. What is the minimum size of a vertex set, excluding and , whose removal separates from ?
Not quite. Try another option.
Answer:
The maximum number of internally vertex-disjoint - paths is . By the vertex form of Menger's theorem, this equals the minimum size of a separating vertex set.
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of MTH401 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of MTH401 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.