0
0
DSA Typescriptprogramming~5 mins

Graph Terminology Vertices Edges Directed Undirected Weighted in DSA Typescript - 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 point in a graph where edges meet. It represents an entity or object.
Click to reveal answer
beginner
Define an edge in graph terminology.
An edge is a connection or link between two vertices in a graph. It shows a relationship or path.
Click to reveal answer
beginner
What does it mean if a graph is directed?
A directed graph has edges with a direction, meaning the connection goes from one vertex to another specific vertex.
Click to reveal answer
beginner
Explain an undirected graph.
An undirected graph has edges without direction. The connection between vertices goes both ways equally.
Click to reveal answer
beginner
What is a weighted graph?
A weighted graph has edges that carry a value or weight, like distance or cost, showing how strong or costly the connection is.
Click to reveal answer
In a graph, what is the term for a point where edges meet?
AVertex
BEdge
CWeight
DPath
Which type of graph has edges with directions?
ADirected graph
BUndirected graph
CWeighted graph
DComplete graph
What does an edge represent in a graph?
AThe weight of a vertex
BA single point
CThe color of a node
DA connection between two vertices
In an undirected graph, edges are:
AAlways weighted
BOne-way connections
CTwo-way connections
DNot connected
What extra information does a weighted graph edge carry?
AColor
BWeight or cost
CDirection
DShape
Describe the difference between directed and undirected graphs.
Think about whether edges have arrows or not.
You got /4 concepts.
    Explain what a weighted graph is and why weights might be useful.
    Imagine roads with distances or prices.
    You got /3 concepts.