D1, C2 - Graphs & Networks Flashcards

1
Q

What are the points on graphs called

A

Vertices or Nodes

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

What are the lines on graphs called

A

Edges or Arcs

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

What is a graph that has number associated with an edge or arc called

A

Weighted graph or Network

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

What is a vertex set

A

A set of all the vertices
e.g. A, B, C, …

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

What is a edge set

A

A set of all the edges
e.g. AB, AC, BC, …

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

What is a subgraph

A

A part of a graph

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

What is the degree / valency / order of a vertex

A

The number of edges incident (coming out of the vertex)

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

What are the types of degree for a vertex (2)

A

Odd
Even

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

What is a walk

A

Any route through a graph from a vertex to a vertex

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

What is a 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
11
Q

What is a 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
12
Q

What is a cycle

A

A walk in which the start and end vertex are the same. No other vertex is visited more than once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
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
14
Q

What is a connected graph

A

A graph will all of its vertices connected

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

What is a 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
16
Q

What is a simple graph

A

A graph with no loops and at most one edge connecting any pair of vertices

17
Q

What is a directed graph (digraph)

A

A graph where all the edges are directed, i.e. have direction arrows on them

18
Q

What is an undirected graph

A

A graph where the sum of the degrees (of the vertices) is equal to 2 * number of edges
Number of odd vertices = even (or zero)
Euler’s Hand-shaking Lemma

19
Q

A graph has 5 nodes and 8 edges. The valencies of the nodes are x, x-1, x+1, 2x-1, x-1. Find x

A

By Euler’s Hand-shaking Lemma
Total valency = 2 * number of edges
x + x-1 + x+1 + 2x-1 + x-1 = 2 * 8
6x - 2 = 16
x = 3

20
Q

What is a tree

A

A connected graph with no cycles

21
Q

What is a spanning tree

A

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

22
Q

What is a complete graph

A

A graph where every vertex is connected to every other vertex

23
Q

What are isometric graphs

A

Graphs which show the same information drawn differently

24
Q

What must be the same with isometric graphs

A

Number of edges
Number of vertices
Same valencies

25
Q

What does it mean if a complete graph is Kn

A

n is the number of vertices of the complete graph e.g. K5 is a complete graph with 5 vertices

26
Q

What does an adjacency matrix show

A

The number of edges between the vertices (0’s down the middle unless there is a loop)

27
Q

What does a distance matrix show

A

The weight of the arc between vertices
(-‘s down the middle)

28
Q

Can you construct a graph given an:
a) Adjacency matrix
b) Distance matrix

A

a) YES
b) NO

29
Q

If a graph is not directed, what does it mean for a distance matrix

A

Matrix should be ‘symmetrical’

30
Q

What goes down the middle diagonal for an adjacency matrix

A

0’s unless there is a loop which would be a 2

31
Q

What should you put in a distance matrix cell if there is no weight between the vertices

A

-

32
Q

If I selected the column which is (B, D) what does this mean (what goes to what)

A

B goes to D

33
Q

Are distance matrices or adjacency matrices always symmetrical

A

Adjacency matrices

34
Q

What is a planar graph

A

A graph where edges only meet at a vertex (arcs don’t cross over)

35
Q

What are the steps for The Planarity Algorithm (6)

A

1) Find a Hamiltonian Cycle
2) Draw this cycle as a polygon
3) Add in any other edges from the original graph (draw these inside the polygon)
4) List all the edges inside the polygon (may be useful to do at the start)
5) Choose any edge on the list and label it I (I for inside)
6) Look for unlabelled edges that cross ‘I’, if these edges cross each other the graph is NOT planar. If they don’t label them ‘O’ (outside). Repeat 5 until all edges are labelled (if all edges are labelled it is PLANAR)

36
Q

How do you know if the Planarity Algorithm finds a planar graph

A

All edges will be labelled O or I

37
Q

What does it mean if when performing the planarity algorithm, 2 edges labelled O (outside) intersect (or two labelled I intersect)

A

The graph is NOT planar