2. Graphs and Networks Flashcards

1
Q

What does a graph consist of?

A

Points called vertices or nodes

Lines called edges or arcs

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

What is a weighted graph or network?

A

A graph that has a number associated with each edge (usually known as weight)

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

What is a subgraph?

A

A part of the original graph

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

What is the degree of a vertex also known as?

A
  1. Order

2. Valency

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

What is the degree of a vertex?

A

The number of edges incident to it

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

Define the term walk

A

A route through a graph along edges from one vertex to the next

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

Define the term path

A

A walk in which no vertex is visited more than once

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

Define the term trail

A

A walk in which no edge is visited more than once

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

Define the term cycle

A

A walk in which the end vertex is the same as the start vertex and no other vertex is visited more than once

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

What is a Hamiltonian cycle?

A

A cycle that includes every vertex

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

What is a connected graph?

A

A graph where all vertices are connected

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

Define the term loop

A

An edge that starts and finishes at the same vertex

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

What is a simple graph?

A

A graph that has no loops and only one edge connecting any pair of vertices

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

What is a directed graph (digraph)?

A

A graph which has directed edges (edges that have a direction associated with them)

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

What is the relationship between the sum of the degrees of the vertices and the number of edges in an undirected graph?

A

sum of degrees of vertices = 2 x number of edges

This means the number of odd vertices must be even

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

What is Euler’s handshaking lemma?

A

sum of degrees of vertices = 2 x number of edges

17
Q

Define the term tree

A

A connected graph with no cycles

18
Q

What is the spanning tree of a graph?

A

A subgraph including all of the vertices of the original graph and is also a tree

19
Q

What is a complete graph?

A

A graph in which every vertex is directly connected to every other vertex with a single edge

20
Q

What are isomorphic graphs?

A

Graphs that show the same information but may be drawn differently

21
Q

What does each entry in an adjacency matrix show?

A

The number of arcs joining corresponding vertices

22
Q

What does each entry in a distance matrix show?

A

The weight of each arc

23
Q

What is a planar graph?

A

A graph that can be drawn with no two edges crossing each other

24
Q

What are the steps to the planarity algorithm?

A
  1. Identify a Hamiltonian cycle
  2. Draw polygon with vertices labelled to match the ones in the Hamiltonian cycle
  3. Draw edges inside polygon to match ones in original graph not already represented by polygon itself
  4. Make list of all edges inside polygon, in any order
  5. Choose any unlabelled edge and call it ‘I’ If all edges are labelled, the graph is planar
  6. Look at all unlabelled edges that cross edge(s) just labelled
  7. If there are none, go back to step 5
  8. If any of these edges cross each other, the graph is non-planar
  9. If none of these edges cross each other, give them the opposite label (‘I’ and ‘O’ are opposites)
  10. If all edges are now labelled, the graph is planar. Otherwise go back to step 6