Lecture 2 - Graph Basics Flashcards

1
Q

What is an undirected graph?

A

One where the edges can go both ways.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does it mean if vertices are adjacent ?

A

They have an edge between them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does it mean if a vertex is incident to edge?

A

Vertex is either source or destination of the edge.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a cycle?

A

A path which returns to starting vertex.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a vertex degree?

A

The amount of edges it is involved with.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does it mean if a graph is connected ?

A

Every pair of vertices is joined by a path.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a non-connected graph?

A

Graph that has 2 or more separate connected components.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When is a graph a tree?

A

Connected and acyclic (has no cycles).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many edges does a tree have if it has n edges?

A

n-1 max to be acyclic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When is a graph a forest?

A

Acyclic and all components are trees.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a complete graph?

A

One that has every pair of verticies joined by an edge.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When is a graph bipartite?

A

If there are 2 disjoint sets and each edge joins vertices from different sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a directed graph?

A

One where each edge has a direction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How can we describe an adjacency of u -> w?

A

U is adjacent to w and w is adjacent from u.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an in-degree?

A

number of edges into vertex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an out degree?

A

number of edges out of vertex