Week 6: Graphs Flashcards
1
Q
What is a graph?
A
2
Q
What are the following:
Directed edge
Undirected edge
Directed graph or digraph
Undirected graph
Mixed graph
A
3
Q
What are the following:
End vertices (or endpoints) of an edge
Edges incident on a vertex
Adjacent vertices
Degree of a vertex
PArallel edges
Self-loop
Simple graph
A
4
Q
What are the following:
path
simple path
A
5
Q
What are the following:
Cycle
Simple cycle
A
6
Q
What are the properties of a graph?
A
7
Q
What is a complete graph/clique?
A
8
Q
What is a connected graph?
A
9
Q
What is a tree?
A
10
Q
What is a forest?
A
11
Q
What is a subgraph?
A
12
Q
What is a connected component?
A
13
Q
Example of connected components:
A
Answer: 3
14
Q
What is the Edge List DS for storing a graph?
A
15
Q
What is the Adjacency List DS for storing a graph?
A