I-Introduction To Network Theory: Basic Concepts
I-Introduction To Network Theory: Basic Concepts
Theory:
Basic Concepts
What is a Network?
Network = graph
Informally a graph is a set of nodes
joined by a set of lines or arrows.
1 1 2 3
2 3
4 5 6 4 5 6
Graph-based representations
Gustav Kirchhoff
Graph Theory - History
Enumeration of Chemical Isomers
V:={1,2,3,4,5,6}
E:={{1,2},{1,5},{2,3},{2,5},{3,4},{4,5},{4,6}}
Simple Graphs
Simple graphs are graphs without
multiple edges or self-loops.
Directed Graph (digraph)
Edges have directions
An edge is an ordered pair of nodes
loop
multiple arc
arc node
Weighted graphs
1.2 2
1 2 3 1 2 3
.2
.5 1.5 5 3
.3 1
4 5 6 4 5 6
.5
Structures and structural
metrics
Graph structures are used to isolate
interesting or important sections of a
graph
Structural metrics provide a measurement
of a structural property of a graph
Global metrics refer to a whole graph
Local metrics refer to a single node in a graph
Graph structures
Identify interesting sections of a graph
Interesting because they form a significant
domain-specific structure, or because they
significantly contribute to graph properties
A subset of the nodes and edges in a
graph that possess certain characteristics,
or relate to each other in particular ways
Connectivity
a graph is connected if
you can get from any node to any other by
following a sequence of edges OR
any two nodes are connected by a path.
The degree of 5 is 3
Degree (Directed Graphs)
In-degree: Number of edges entering
Out-degree: Number of edges leaving
outdeg(2)=2
indeg(2)=2
outdeg(3)=1
indeg(3)=4
Degree: Simple Facts
uv,vw,wx,…,yz.
1,2,5,1 2,3,4,5,2
3-cycle 4-cycle
Special Types of Graphs
Null graph
No nodes
Obviously no edge
Trees
Paths
Stars
Regular
Connected Graph
C3 C4 C5
Bipartite graph
V can be partitioned
into 2 sets V1 and V2
such that (u,v)E
implies
either u V1 and v V2
OR v V1 and uV2.
Complete Graph
Stars
Planar Graphs
Can be drawn on a plane such that no two edges
intersect
K4 is the largest complete graph that is planar
Subgraph
D E F
G H I
Spanning subgraph
Incidence Matrix
VxE
[vertex, edges] contains the edge's data
Adjacency Matrix
VxV
Boolean values (adjacent or not)
Or Edge Weights
Matrices
1,2 1,5 2,3 2,5 3,4 4,5 4,6
1 1 1 0 0 0 0 0
2 1 0 1 1 0 0 0
3 0 0 1 0 1 0 0
4 0 0 0 0 1 1 1
5 0 1 0 1 0 1 0
6 0 0 0 0 0 0 1
1 2 3 4 5 6
1 0 1 0 0 1 0
2 1 0 1 0 1 0
3 0 1 0 1 0 0
4 0 0 1 0 1 1
5 1 1 0 1 0 0
6 0 0 0 1 0 0
Representation (List)
Edge List
pairs (ordered if directed) of vertices
Optionally weight and other data
Adjacency List (node list)
Implementation of a Graph.
Adjacency-list representation
an array of |V | lists, one for each vertex in
V.
For each u V , ADJ [ u ] points to all its
adjacent vertices.
Edge and Node Lists
Edge List Node List
12 122
12 235
23 33
25 435
33 534
43
45
53
54
Edge Lists for Weighted
Graphs
Edge List
1 2 1.2
2 4 0.2
4 5 0.3
4 1 0.5
5 4 0.5
6 3 1.5
Topological Distance
1 2 3 4 5 6
1 0 1 2 2 1 3
2 1 0 1 2 1 3
3 2 1 0 1 2 2
4 2 2 1 0 1 1
5 1 1 2 1 0 2
6 3 3 2 1 2 0
References
Aldous & Wilson, Graphs and Applications. An
Introductory Approach, Springer, 2000.
WWasserman & Faust, Social Network Analysis,
Cambridge University Press, 2008.
Exercise 1
(a) (b)
Exercise 3