Models of networks (synthetic networks or generative models): Erdős-Rényi Random model, Watts-Strogatz Small-world, Barabási-Albert Preferential attachment,

Slides:



Advertisements
Similar presentations
Peer-to-Peer and Social Networks Power law graphs Small world graphs.
Advertisements

Emergence of Scaling in Random Networks Albert-Laszlo Barabsi & Reka Albert.
Analysis and Modeling of Social Networks Foudalis Ilias.
It’s a Small World by Jamie Luo. Introduction Small World Networks and their place in Network Theory An application of a 1D small world network to model.
VL Netzwerke, WS 2007/08 Edda Klipp 1 Max Planck Institute Molecular Genetics Humboldt University Berlin Theoretical Biophysics Networks in Metabolism.
Information Networks Generative processes for Power Laws and Scale-Free networks Lecture 4.
The influence of search engines on preferential attachment Dan Li CS3150 Spring 2006.
1 Evolution of Networks Notes from Lectures of J.Mendes CNR, Pisa, Italy, December 2007 Eva Jaho Advanced Networking Research Group National and Kapodistrian.
Complex Networks Third Lecture TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA TexPoint fonts used in EMF. Read the.
Networks. Graphs (undirected, unweighted) has a set of vertices V has a set of undirected, unweighted edges E graph G = (V, E), where.
Network Models Social Media Mining. 2 Measures and Metrics 2 Social Media Mining Network Models Why should I use network models? In may 2011, Facebook.
Scale-free networks Péter Kómár Statistical physics seminar 07/10/2008.
Network Statistics Gesine Reinert. Yeast protein interactions.
Alon Arad Alon Arad Hurst Exponent of Complex Networks.
Advanced Topics in Data Mining Special focus: Social Networks.
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 7 May 14, 2006
The Erdös-Rényi models
(Social) Networks Analysis III Prof. Dr. Daning Hu Department of Informatics University of Zurich Oct 16th, 2012.
Topic 13 Network Models Credits: C. Faloutsos and J. Leskovec Tutorial
Author: M.E.J. Newman Presenter: Guoliang Liu Date:5/4/2012.
Network properties Slides are modified from Networks: Theory and Application by Lada Adamic.
Random-Graph Theory The Erdos-Renyi model. G={P,E}, PNP 1,P 2,...,P N E In mathematical terms a network is represented by a graph. A graph is a pair of.
Social Network Analysis Prof. Dr. Daning Hu Department of Informatics University of Zurich Mar 5th, 2013.
3. SMALL WORLDS The Watts-Strogatz model. Watts-Strogatz, Nature 1998 Small world: the average shortest path length in a real network is small Six degrees.
Class 9: Barabasi-Albert Model-Part I
Lecture 10: Network models CS 765: Complex Networks Slides are modified from Networks: Theory and Application by Lada Adamic.
LECTURE 2 1.Complex Network Models 2.Properties of Protein-Protein Interaction Networks.
Most of contents are provided by the website Network Models TJTSD66: Advanced Topics in Social Media (Social.
Performance Evaluation Lecture 1: Complex Networks Giovanni Neglia INRIA – EPI Maestro 10 December 2012.
Netlogo demo. Complexity and Networks Melanie Mitchell Portland State University and Santa Fe Institute.
Cmpe 588- Modeling of Internet Emergence of Scale-Free Network with Chaotic Units Pulin Gong, Cees van Leeuwen by Oya Ünlü Instructor: Haluk Bingöl.
The simultaneous evolution of author and paper networks
Network Science Overview (2)
Network (graph) Models
Structures of Networks
Hiroki Sayama NECSI Summer School 2008 Week 2: Complex Systems Modeling and Networks Network Models Hiroki Sayama
Lecture 1: Complex Networks
Topics In Social Computing (67810)
A Network Model of Knowledge Acquisition
Learning to Generate Networks
Empirical analysis of Chinese airport network as a complex weighted network Methodology Section Presented by Di Li.
Models of networks (synthetic networks or generative models): Random, Small-world, Scale-free, Configuration model and Random geometric model By: Ralucca.
Peer-to-Peer and Social Networks
Network Science (overview, part 1)
Section 8.6: Clustering Coefficients
Network Science (Overview, part 2)
Network Science: A Short Introduction i3 Workshop
Section 8.6 of Newman’s book: Clustering Coefficients
The Watts-Strogatz model
Models of Network Formation
Section 8.2: Shortest path and small world effect
Shortest path and small world effect
Centralities (4) Ralucca Gera,
Models of Network Formation
Peer-to-Peer and Social Networks Fall 2017
Models of Network Formation
Robustness or Network Resilience
Models of Network Formation
Clustering Coefficients
Peer-to-Peer and Social Networks
From the Synthetic networks slide deck (didn’t have a chance to go over them at that time) By: Ralucca Gera, NPS.
Section 8.3: Degree Distribution
Lecture 9: Network models CS 765: Complex Networks
Models of networks (synthetic networks or generative models)
Degree Distribution Ralucca Gera,
Network Science: A Short Introduction i3 Workshop
Network Models Michael Goodrich Some slides adapted from:
Advanced Topics in Data Mining Special focus: Social Networks
Advanced Topics in Data Mining Special focus: Social Networks
From Connections to Function: The Mouse Brain Connectome Atlas
Presentation transcript:

Models of networks (synthetic networks or generative models): Erdős-Rényi Random model, Watts-Strogatz Small-world, Barabási-Albert Preferential attachment, Molloy-Reed Configuration model and Gilbert Random Geometric model Ralucca Gera, Applied Mathematics Dept. Naval Postgraduate School Monterey, California rgera@nps.edu Excellence Through Knowledge

The world around us as a network What do social networks look like? Watch this video Synthetic models are used as reference/null models to compare and understand the structure of complex networks: E-R Random networks (normal degree distribution) Scale free (power-law degree distribution) Small world Video: https://www.youtube.com/watch?v=QUWds9gt6aE

The three papers for each of the models “On Random Graphs I” by Paul Erdős and Alfed Renyi in Publicationes Mathematicae (1958) Times cited: ∼ 3, 517 (as of January 1, 2015) “Collective dynamics of ‘small-world’ networks” by Duncan Watts and Steve Strogatz in Nature, (1998) Times cited: ∼ 24, 535 (as of January 1, 2015) “Emergence of scaling in random networks” by László Barabási and Réka Albert in Science, (1999) Times cited: ∼ 21, 418 (as of January 1, 2015)

Create networks of different sizes Why care? Epidemiology: A virus propagates much faster in scale-free networks. Vaccination of random nodes in scale free does not work, but targeted vaccination is very effective Create synthetic networks to be used as null models: What effect does the degree distribution alone have on the behavior of the system? (answered by comparing to the configuration model) Create networks of different sizes Networks of particular sizes and structures can be quickly and cheaply generated, instead of collecting and cleaning the data that takes time

Reference network: Regular Lattice The 1-dimensional lattice is the Harary graph H(n,r) or the Circulant graph 𝐶 𝑛 (1, 2, …, r) start with an n-cycle, and each vertex is adjacent to r/2 vertices to the left, and r/2 vertices to the right. Source: http://mathworld.wolfram.com/CirculantGraph.html

Reference network: Regular Lattice a particular Circulant graph 𝐶 𝑛 (1, 2, …, r): Source: http://mathworld.wolfram.com/CirculantGraph.html Source: http://mathworld.wolfram.com/CirculantGraph.html

Reference network: Regular Lattice The higher dimensions are generalizations of these.  An example is a hexagonal lattice is a 2-dimensional lattice: graphene, a single layer of carbon atoms with a honeycomb lattice structure. Source: http://phys.org/news/2013-05-intriguing-state-previously-graphene-like-materials.html

Erdős-Rényi Random Graphs (1959)

Random graphs (Erdős-Rényi , 1959) ERmodel : graph is created at random using fixed parameters (for nodes and edges): G(n, m): fix n (node count) and m (edge count) G(n,p): fix n and probability p of the edge existence between vertices (m is not fixed) The mean value of edges: 𝑚= 𝑛 2 𝑝= 𝑛 𝑛−1 𝑝 2 The average degree 𝑘 𝑖 = 𝑛−1 𝑝 The distribution of finding a node of degree 𝑘 𝑖 is binomial: 𝑃 𝑘 = 𝑛−1 𝑘 𝑝 𝑘 1−𝑝 𝑛−1−𝑘

To make a random network: G(n,m) To make a random network: take n nodes, m unlabeled edges randomly placed between the n vertices Put the graph in a box, make another one and put it in the box, and another one… Pull one network at random out of the box and it will have a Normal Degree Distribution (classic degree distribution): almost everyone has the same number of friends on average

Method two and equivalent to the first: To make a random network: G(n,m) Method two and equivalent to the first: To make a random network: take n nodes, m pairs of nodes at random to form edges, place the edges between the randomly chosen nodes. The average degree: <k> = 2𝑚 𝑛 , where 𝑘 𝑖 is often used to denote the degree of vertex i in complex networks (enumerate the vertices, 1, 2, …)

To make a random network: G(n,p) To make a random network: take n nodes, A fixed probability p Attach edges at random to the nodes, with the probability p Both for G(n,p) and G(n,m)

Results about E-R graphs: Degree distribution: Binomial Average path is small compared to n: ln 𝑛 ln ( 𝑘 𝑖 ) , where 𝑘 𝑖 is the average degree Comparable to the ln 𝑛 of the observed networks Clustering coefficient is small: 𝑝= 𝑘 𝑖 𝑛 (The probability that two neighbors of a node are connected is equal to the probability of any two random nodes being connected) Observed networks have a high clustering coefficient

Erdős-Rényi random networks There might be some that are a bit different that don’t have this degree distribution, but there are so few of them, that you will not pull one out of this box The universe doesn’t produce these (they are made by us, they are mathematically constructed) rather scale-free We will construct them using Gephi and NetworkX. For Gephi you will need the plug-in. NetworkX has more synthetic models and classes available

Generating Erdős-Rényi ER(n,p) ER graphs are models of a network in which some specific set of parameters take fixed values, but the construction of the network is random (see below in Gephi)

Generating Erdős-Rényi ER(n,m)

Generating Erdős-Rényi random networks Reference for python: http://networkx.lanl.gov/reference/generated/networkx.generators.random_graphs.erdos_renyi_graph.html#networkx.generators.random_graphs.erdos_renyi_graph

The Random Geometric model

Random Geometric Model Again the connections are created at random, but based on proximity (such as ad hoc networks) proximity is relevant: nodes within a certain fixed distance r are randomly chosen to be adjacent There is no perfect model for the world around us, not even for specific types of networks

An example of a random geometric https://www.youtube.com/watch?v=NUisb1-INIE

Python creation https://networkx.github.io/documentation/networkx-1.10/reference/generated/networkx.generators.geometric.random_geometric_graph.html#networkx.generators.geometric.random_geometric_graph

The Malloy Reed Configuration model (1995)

The configuration model A random graph model created based on Degree sequence of choice (can be scale free) Maybe more than degree sequence is needed to be controlled in order to create realistic models

The MR configuration model A random graph model created based on a degree sequence of choice: 4, 3, 2, 2, 2, 1, 1, 1 Step 1: Step 2: Or this step 2:

Mathematical properties Expectation of 𝑖𝑗 to be an edge : the probability that one of i’s edges connects to node j is the edges incident to j (i.e. 𝑘 𝑗 ) out of all m edges that G has. As node i’s degree is 𝑘 𝑗 , this event has 𝑘 𝑗 chances to occur , and so p ij = k i k j 2𝑚 (used 2m since each edge is counted from each of its two ends) Expectation of a multi edge 𝑖𝑗 : Given that 𝑖𝑗∈𝐸 𝐺 , then the probability that it will be an edge again is p ij = (k i −1) (k j −1) 2𝑚 , and so the probability of both happening is p ij−𝑝𝑎𝑟𝑎𝑙𝑙𝑒𝑙 = k i k j 2𝑚 (k i −1) (k j −1) 2𝑚 = (k i 𝑘 𝑗 )(k i −1) (k j −1) 4 𝑚 2 Thus, the expected number of parallel edges is:

Mathematical properties (parallel edges) Since the average degree is <𝑘> = 𝑖 𝑘 𝑖 𝑛 = 2𝑚 𝑛 , and < 𝑘 2 > = 𝑖 𝑘 𝑖 2 𝑛 , the expected number of parallel edges is: http://tuvalu.santafe.edu/~aaronc/courses/5352/csci5352_2017_L4.pdf

Mathematical properties (loops) 1. Expectation of a loop 𝑖𝑖: p 𝑖𝑖 = k i 2 2𝑚 instead of p ij = k i k j 2𝑚 for parallel edges 2. And thus similarly, the expected number of loops is: < 𝑘 2 > − <𝑘> 2<𝑘> instead of < 𝑘 2 > − <𝑘> 2 2<𝑘 > 2 for parallel edges 3. Since both equations in 2. are constant with respect to the size of the network, only a small fraction of edges are loop or parallel edges http://tuvalu.santafe.edu/~aaronc/courses/5352/csci5352_2017_L4.pdf

Python generation https://networkx.github.io/documentation/networkx-1.10/reference/generated/networkx.generators.degree_seq.configuration_model.html

Watts-Strogatz Small World Graphs (1998)

Small world models Duncan Watts and Steven Strogatz small world model: a few random links in an otherwise structured graph make the network a small world: the average shortest path is short regular lattice (one type of structure): my friend’s friend is always my friend small world: mostly structured with a few random connections random graph: all connections happen at random Source: Watts, D.J., Strogatz, S.H. (1998) Collective dynamics of 'small-world' networks. Nature 393:440-442.

Small worlds, between order and chaos High clustering: .75 High average path: 𝑛 2 Low clustering: p (ER probabil.) Low average path: ln 𝑛 ln ( 𝑘 𝑖 ) Small worlds the graph on the left has order (probability p =0), the graph in the middle is a "small world" graph (0 < p < 1), the graph at the right is complete random (p=1). Source: http://www.bordalierinstitute.com/target1.html

Average path and clustering https://pdfs.semanticscholar.org/8c4c/455de44fa99e73e79d6fddf008ca6ae0f9aa.pdf

small worlds Small worlds a friend of a friend is also frequently a friend (clustering coefficient) but only small number of hops separate any two people in the world (small average path) Arnold Schwarzenegger. – thomashawk, Flickr; http://creativecommons.org/licenses/by-nc/2.0/deed.en

Generating Watts-Strogatz WS (n, k, alpha) Alpha is the rewiring probability

Generating Watts-Strogatz networks .15 is the rewiring probability http://networkx.lanl.gov/reference/generated/networkx.generators.random_graphs.watts_strogatz_graph.html#networkx.generators.random_graphs.watts_strogatz_graph

Scale free model (particularly Barabási-Albert preferential)

Scale-free networks are a type of small world Whether static or evolutionary, they have A power-law degree distribution: 𝑝=𝐶 𝑘 −𝛼 , 𝑤ℎ𝑒𝑟𝑒 2≤𝛼≤3. Common ways to grow the network: (degree) preferential attachment (for Barabási-Albert type the probability of attachment 𝑝 𝑢 = 𝑘 𝑢 𝑖 𝑘 𝑖 ) Fitness (preassigned values).

Power law networks Many real world networks contain hubs: highly connected nodes Usually the distribution of edges is extremely skewed many nodes with small degree number of nodes of that degree no “typical” degree fat tail: a few nodes with a very large degree Degree (number of edges)

But is it really a power-law? A power-law will appear as a straight line on a log-log plot: let 𝑝 𝑘 be the count of vertices of degree k. 𝑝 𝑘 =𝐶 𝑘 −𝛼 ln 𝑝 𝑘 =−𝛼 ln 𝑘 +𝑐 A deviation from a straight line could indicate a different distribution: exponential lognormal Log of number of nodes of that degree log of the degree

Fitting distributions Node (frame) and edge (inset) counts of European Airline Transportation Network's layers with distribution fitting.

Fitting distributions European Airline Transportation Network's multilayer network: Degree histogram of the multiplexes with the log scale in the inset. Upper right: average shortest path, lower right: centrality coefficient, per node

Network growth & resulting structure random attachment: new node picks any existing node to attach to Preferential/fitness attachment: new node picks from existing nodes according to their degrees/fitness (high preference for high degree/fitness) http://projects.si.umich.edu/netlearn/NetLogo4/RAndPrefAttachment.html

This is not the only way to get scale–free networks! One example is the one introduced by Albert Laslo Barabási and Reka Albert (BA model) based on preferential attachment: Start with a small set of nodes ( 𝑚 0 ) and random edges Attach new nodes one at the time; each with the same fixed number 𝑙 of new edges, attaching to the existing nodes in the network, with preference for high degrees (once the high degrees appear) https://www.youtube.com/watch?v=5YdkhWB_uYQ This is not the only way to get scale–free networks!

Generating Barabasi-Albert

Generating Barabasi-Albert networks http://networkx.lanl.gov/reference/generated/networkx.generators.random_graphs.barabasi_albert_graph.html#networkx.generators.random_graphs.barabasi_albert_graph

Many modifications of this model exists, based on: Modified BA Many modifications of this model exists, based on: Nodes “retiring” and losing their status/outdated Nodes disappearing (such as website going down) Links appearing or disappearing between the existing nodes (called internal links) Fitness of nodes (modeling newcomers like Google) Most researchers still use the standard BA model when studying new phenomena and metrics. It is a simple model (allows consistent research) that has growth and preferential attachment One can add more conditions to this basic model, in order to mimic reality

A zoo of complex networks

Random, Small-World, Scale-Free Scale Free networks: High degree heterogeneity Various levels of modularity Various levels of randomness Man made, “large world”: http://noduslabs.com/radar/types-networks-random-small-world-scale-free/

Python References to the classes that exist in python: http://networkx.lanl.gov/reference/generators.html

Main References Newman “The structure and function of complex networks” (2003) Estrada “The structure of complex Networks” (2012) Barabasi “Network Science” (online: http://barabasi.com/networksciencebook/)