Graphs and Networks Flashcards

1
Q

What does a graph consist of

A

Points (vertices/nodes), the list of which may be referred to as the vertex set
Lines (edges/arcs), the list of which may be referred to as the edge set

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

Weighted graph or network

A

If a graph has a number (weight) associated with each edge

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

Subgraph of G

A

A graph, each of whose vertices belong to G and each of whose edges belong to G

A part of the original graph

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

The number of edges incident to a vertex

A

Degree/valency/order
A loop counts as 2
A vertex has either odd or even degree

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

Walk

A

A finite sequence of arcs such that the end vertex of one arc is the start vertex of the next

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

Path

A

A walk in which no vertex appears more than once

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

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
8
Q

Cycle/circuit

A

A closed path - finishes at the start vertex

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

Hamiltonian cycle

A

A cycle that visits every vertex exactly once

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

When is a graph connected?

A

If all its vertices are connected

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

Loop

A

An edge which starts and finishes at the same vertex

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

Simple graph

A

One with no loops and no more than one edge connecting any pair of vertices

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

Directed edges

A

Where the edges have a direction associated to them

Known as a digraph

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

Euler’s handshaking lemma

A

In any undirected graph, the sum of the degrees of the vertices is equal to 2x the amount of edges. As a consequence, the number of odd vertices must be even, including possibly zero.

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

Tree

A

A connected graph with no cycles

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

Spanning tree of a graph

A

A subgraph which includes all the vertices of a graph and is also a tree

17
Q

Complete graph

A

A graph in which every vertex is connected by a single edge to every other vertex
Symbolised by K
no. of nodes

18
Q

Isomorphic graphs

A

Have the same number of vertices of the same degree connected differently

19
Q

Adjacency matrix

A

A table which shows the amount of connections between the vertices of a graph. Each entry describes the number of arcs joining the corresponding vertices

20
Q

How many connections is a loop?

A

2

21
Q

Distance matrix

A

The matrix associated with a weighted graph, the entries represent the weight of each arc, not the number, only write the weight if an edge connects them, no paths

22
Q

Matrix for a directed graph

A

The values in the matrix represent the distance from the value on the left to the one on the top

23
Q

Planar graph

A

One that can be drawn in a plane such that no two edges meet except at a vertex

24
Q

When can you use the planarity algorithm?

A

When a graph contains a Hamiltonian cycle

25
Q

Planarity algorithm setup

A
  1. Find a Hamiltonian cycle
  2. Draw a regular polygon with a neighbouring vertex for each connected vertices in the Hamiltonian cycle
  3. Draw the edges that weren’t in the Hamiltonian cycle inside the polygon
  4. Draw the polygon again with no edges inside
  5. Make a key to highlight the lines on the original polygon depending on whether they go on the inside or the outside.
26
Q

Planarity algorithm execution

A
  1. Draw one edge from the first polygon on the inside of the second
  2. Note that line with an (i) next to it and then note any that cross that line with an (o) next to them and draw on the outside of the second polygon, ticking next to the note of the original line
  3. Work down the list noting any that cross the next line as in the opposite region to them
  4. Repeat until all lines have been drawn and ticked or it doesn’t work at which stage it isn’t planar