Introduction to Graphs Flashcards

1
Q

Definition of Graph

A

Collection of vertices and edges. Each edge is said to join two vertices, which are called its end points.

Informally: Set of vertices (nodes) and set of edges (arrows) which connect pairs of vertices.

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

Types of graphs

A
  1. Undirected graph (arrows in both directions have the same value)
  2. Directed graph (arrows in each direction have different values)
  3. Mixed graph
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain Weighted graph and weighted matrix

A

Weighted graph: There are values on the edges

Weighted matrix: show on a matrix the values on edges between nodes. In case nodes aren’t connected to each other or we are travelling directly from a node to the same node the value is infinity.

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

Simple or strict graph

A

Nonsimple graph is when there is more than one edge between any two different vertices (nodes) or there are loops around a single vertex (node)

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

Connected or disconnected graph

A

In a connected graph each vertex (node) is reachable so there is a path between every pair of vertices (nodes).

A graph with just one vertex is connected

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

Complete graph

A

You can travel to each vertex (node) from any other vertex (node). Everything is connected to everything else.

A graph in which all vertices are mutually connected by means of direct edges.

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

Cycle graph

A

Simple connected graph where each vertex is connected with two other vertices

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

Eulerian path and Eulerian cycle

A

Eulerian path: a trail in a connected graph in which we can visit every edge exactly once

Eulerian cycle: is an Eulerian path which starts and ends on the same vertex.

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

Hamiltonian path and Hamiltonian cycle

A

Hamiltonian path: a trail in a connected graph in which we can visit every vertex exactly once

Hamiltonian cycle: a path that visits all the graph’s vertices exactly once before returning to the starting vertex for this graph.

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

Eulerian path vs Hamiltonian path

A

Eulerian: edges
Hamiltonian: vertices (nodes)

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