






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Graphs are made up by vertices (nodes) and edges (links).An edge connects two vertices, or a vertex with itself โ loop.
AC, AC - multiple edgesBB โ loop
The shape of the graph does notmatter, only the way the nodes areconnected to each other.
Usually we will not consider loops and self-edges โ simple graph.
Node degree: the number of edges incident at
the node. In directed networks we can define anin- degree and out-degree.Average degreeThe degree distribution
gives the
fraction of nodes that have
edges.
=
N i
i
1
i
Connected graph: any two vertices can be joined by a path.A disconnected graph is made up by connected components.
Bridge: if we erase it, the graph becomes disconnected.
edges: AB, BC, BD, CD
1/2/3.
them. Each time you add an edge you must pay $1. What is theminimum amount of money needed to build the graph?
edges, and you must stop before the graph is connected. What is the most money you can make?
The distance between two nodes is definedas the number of edges along the shortestpath.If the two nodes are disconnected, thedistance is infinity.
Average path length ofconnected graph N
pairs
is the number of node pairs
โ
i
j
i
ij
pairs
,
2
) 1
(
2
โ
=
โโโโ
โโโโ
=
N
N
N
N
pairs
Social networks frequently contain cliquesLocal order: how close the neighborhoodof a node is to a clique?Clustering coefficientAverage clustering coefficient
=
N
1
i
i
i
i
i
i
One-dimensional lattice:
2 / 1 N L l
โ
โ
The average path-lenght varies asConstant degree (coordination number), constant clusteringcoefficient.
const
C
const
k
N
l
=
=
โ
,
,
D
N
l
/
1
โ
Ex. 4Start with 10 isolated nodes. For each pair of nodes, throw witha dice, and connect them if the number on the dice is 1.Describe the graph you obtained. How many edges are in thegraph? Is it connected or not? What is the average degree andthe degree distribution?Ex. 5Now connect node pairs if the number on the dice is 1 or 2. How isthe graph different from the previous case?Ex. 6How many edges do you expect a graph with N nodes wouldhave if each edge is selected with throwing with a dice?