Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a vertex in a graph?
Think of it as a point or location.
What does an edge represent in a graph?
It's like a line connecting two points.
Which of the following best describes a graph?
Look for the option that describes the structure of a graph.
True or False: A directed graph has edges that do not have a direction.
Think about how one-way streets function.
Given a weighted undirected graph, use Dijkstra's algorithm to find the shortest path from vertex A to all other vertices, detailing each step.
Start by initializing distances and consider the order of vertex exploration.
Using Prim’s algorithm, construct a minimum spanning tree for the following graph with weights on edges. Explain your steps.
Focus on finding the least expensive edge not yet included in the growing tree.
7 more questions in this section. Enroll free to practise them all.
Enroll free