0
0
DSA Cprogramming~5 mins

Graph Terminology Vertices Edges Directed Undirected Weighted in DSA C - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a vertex in a graph?
A vertex (or node) is a fundamental part of a graph representing a point or position where edges meet. Think of it like a city on a map.
Click to reveal answer
beginner
What is an edge in a graph?
An edge connects two vertices in a graph. It represents a relationship or path between points, like a road connecting two cities.
Click to reveal answer
beginner
What does it mean if a graph is directed?
A directed graph has edges with a direction, like one-way streets. Each edge goes from one vertex to another in a specific direction.
Click to reveal answer
beginner
What is an undirected graph?
An undirected graph has edges without direction. The connection between vertices works both ways, like a two-way street.
Click to reveal answer
beginner
What is a weighted edge in a graph?
A weighted edge has a number (weight) showing cost, distance, or value of the connection. For example, the length of a road or price of a flight.
Click to reveal answer
In a graph, what does a vertex represent?
AA point or node
BA connection between points
CA direction of travel
DA weight or cost
What type of graph has edges with directions?
AWeighted graph
BDirected graph
CUndirected graph
DComplete graph
Which graph type allows travel both ways between connected vertices?
ADisconnected graph
BDirected graph
CWeighted graph
DUndirected graph
What does a weighted edge in a graph represent?
AA direction
BA disconnected node
CA cost or value
DA vertex
Which of these is NOT a part of graph terminology?
AArray
BVertex
CNode
DEdge
Explain the difference between directed and undirected graphs with examples.
Think about how roads can allow traffic in one or both directions.
You got /4 concepts.
    Describe what weighted edges are and why they are useful in graphs.
    Consider how a map might show distances or toll costs on roads.
    You got /3 concepts.