Graph theory Flashcards

(33 cards)

1
Q

What is a graph?

A

A diagram with a set of points called vertices that are joined by lines called edges

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

What are adjacent vertices?

A

Two vertices that are at opposite ends of an edge (a common edge)

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

What does multiple edges mean?

A

Two or more edges which connect to the same pair of vertices.

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

What is a loop?

A

An edge in a graph that joins a vertex to itself

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

What is an isolated vertex?

A

A vertex that isn’t connected to any other vertex in a graph by an edge

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

What is the degree of a vertex?

A

The number of graph edges that touch that vertex

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

How many degrees does a loop add to a vertex?

A

Two

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

What is the sum of degrees?

A

The total number of degrees of each vertex added together

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

What is the in-degree of a vertex?

A

The number of edges coming into the vertex

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

What is the out-degree of a vertex?

A

The number of edges going out from that vertex

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

Give an example of a vertex and edge set.

A

Set of vertices: V = {A, B, C}
Set of edges: E = {AB, AD, AC, BC}

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

Give an example of an adjacency list.

A

A: B, D, E
B: A
C: D, E
D: A, C, E
E: A, C, D

The list indicates what each vertex is adjacent to

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

What is a null graph?

A

A graph made up of isolated vertices and no edges

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

What is a trivial graph?

A

A null graph with only one vertex

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

What are the features of a simple graph?

A
  • No loops
  • No multiple edges
  • Number of vertices with an odd degree is even
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the main feature of a connected graph?

A

There’s a path between each pair of vertices

17
Q

What is the main feature of a disconnected graph?

A

There’s a pair of vertices with no path between them

18
Q

What are the features of a non-directed/undirected graph?

A

Made up of vertices and non-directed edges

19
Q

What is the main feature of a directed graph/digraph?

A

Each edge has an arrow to show the direction of movement

20
Q

What is a simple digraph?

A

Directed graph with no loops or multiple edges

21
Q

What is the main feature of a regular graph?

A

All vertices have the same degree

22
Q

What are the features of a complete graph?

A
  • Undirected
  • Simple
  • Every vertex is connected to every other vertex by an edge
23
Q

What are the features of a weighted graph?

A
  • Each edge is labelled with a number (weight) used to represent a quality associated with the edge (eg: distance, time)
  • Can be directed or undirected
24
Q

What is a subgraph?

A

A part of another graph with no new vertices or edges

25
What are the features of a bipartite graph?
- Vertices can be split into two groups - Each edge of the graph joins a vertex in the 1st group to a vertex in the 2nd group
26
What is a complete bipartite graph?
Bipartite graph where every vertex in the 1st group is connected to every vertex in the 2nd group
27
What sort of adjacency matrix would "A" indicate?
One-stage matrix with no stopovers
28
What sort of adjacency matrix would "A²" indicate?
Two-stage matrix with one stopover
29
What sort of adjacency matrix would "A³" indicate?
Three stage matrix with two stopovers
30
What sort of adjacency matrix would "A + A²" indicate?
Matrix with one stopover at most
31
What sort of adjacency matrix would "A + A² + A³" indicate?
Matrix with two stopovers at most
32
What are the features of a planar graph?
- Undirected - Can be drawn on a plane without any edges crossing
33
What is Euler's formula?
For planar graphs: v + f - e = 2 v = number of vertices f = number of faces e = number of edges