Mathematics of Graphs
Mathematics of Graphs
What is a Graph?
C D
A B D
2. C
3. A
B C D
E
Basic Terms Used in Graph
Theory
• Degree of a vortex. It refers to the number of edges that emanate
from that vertex. A B
A B
• Examples:
C
D C D
C D
A-B-C, B-C-D, A-B-C-D
Basic Terms Used in Graph
Theory
• Circuit. It is walk in a graph that starts and ends on the same
vertex.
• Example: C
A
A-B-C-D-A
D-E-C-D
A-B-C-E-D-A E
B-C-E-D-A-B D
B
A-B-C-E-D-C-A
C-E-D-C-A-B-C
B
E
Weighted Graphs
Weighted Graph
• Graph in which each edge is
associated with a value, called
a weight
• Value can represent any
quantity
Weighted Graphs
Components
1. Vertices (Nodes)
These are the points or
locations
in the graph.
2. Edges (Links)
These are the connections
between
vertices.
3. Weights
Each edge has a numerical
value
Weighted Graphs
Components
1. Vertices (Nodes)
These are the points or
locations
in the graph.
2. Edges (Links)
These are the connections
between
vertices.
3. Weights
Each edge has a numerical
value
Weighted Graphs
Example:
Suppose a traveler would like to
start in Chicago, visit the other
five cities this airline flies to, and
return to Chicago. Find three
different routes that the traveler
could follow, and find the total
distance flown for each route
Planar Graphs
Planar graphs are graphs that can be drawn without any
overlapping edges
• It may be necessary to redraw a graph so that you can identify if
it’s a planar or not
• All simple graphs with 4 or fewer vertices are planar
• Any complete graph with 5 or more vertices is non-planar
Planar Graphs
3 key components of planar graphs
1. Edges
2. Vertices
3. Faces (or regions)