Complex Networks Analysis Information Systems Engineering ‎ (2013 A) Instructor: Rami Puzis TA: Luiza

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
Introduction This chapter explores graphs and their applications in computer science This chapter explores graphs and their applications in computer science.
Data Structures Using C++
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Mining and Searching Massive Graphs (Networks)
Introduction to Graphs
Introduction to Graphs What is a Graph? Some Example applications of Graphs. Graph Terminologies. Representation of Graphs. –Adjacency Matrix. –Adjacency.
Graph: Relations There are many kinds of social relations. For example: Role-based : brother of, father of, sister of, etc. : friend of, acquaintance of,
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Graph Essentials Social Media Mining. 2 Measures and Metrics 2 Social Media Mining Graph Essentials Networks A network is a graph. – Elements of the network.
Social Media Mining Graph Essentials.
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
GRAPH Learning Outcomes Students should be able to:
Data Structures Using C++ 2E
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
Computer Science 112 Fundamentals of Programming II Introduction to Graphs.
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
Class 2: Graph theory and basic terminology Learning the language Network Science: Graph Theory 2012 Prof. Albert-László Barabási Dr. Baruch Barzel, Dr.
It's a world-wide webby wonderland.. Graphs are often used to represent real-world information and real-world structures. Graph Theory was even invented.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Lecture 5: Mathematics of Networks (Cont) CS 790g: Complex Networks Slides are modified from Networks: Theory and Application by Lada Adamic.
Mathematics of Networks (Cont)
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
Data Structures & Algorithms Graphs
L – Modelling and Simulating Social Systems with MATLAB Lesson 6 – Graphs (Networks) Anders Johansson and Wenjian Yu (with S. Lozano.
Complex Networks: Models Lecture 2 Slides by Panayiotis TsaparasPanayiotis Tsaparas.
Most of contents are provided by the website Graph Essentials TJTSD66: Advanced Topics in Social Media.
Networks and Graphs in Introduction Many Decision Science problems can be modelled using what are called graphs or networks. A network is.
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
Class 2: Graph Theory IST402. The Bridges of Konigsberg Section 1.
Class 2: Graph Theory IST402. Can one walk across the seven bridges and never cross the same bridge twice? Network Science: Graph Theory THE BRIDGES OF.
Chapter 9: Graphs.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Class 2: Graph Theory IST402.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Department of Computer and IT Engineering University of Kurdistan Social Network Analysis Graph Theory By: Dr. Alireza Abdollahpouri.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
1 Data Structures and Algorithms Graphs. 2 Graphs Basic Definitions Paths and Cycles Connectivity Other Properties Representation Examples of Graph Algorithms:
Excursions in Modern Mathematics Sixth Edition
Hiroki Sayama NECSI Summer School 2008 Week 2: Complex Systems Modeling and Networks Network Models Hiroki Sayama
Graphs Chapter 20.
EECS 203 Lecture 19 Graphs.
Data Structures Graphs - Terminology
Chapter 9 (Part 2): Graphs
Introduction to Graphs
Structural Properties of Networks: Introduction
Graph theory Definitions Trees, cycles, directed graphs.
Discrete Structures – CNS2300
Introduction to Graphs
Network analysis.
Community detection in graphs
I206: Lecture 15: Graphs Marti Hearst Spring 2012.
Structural Properties of Networks: Introduction
CS120 Graphs.
Discrete Maths 9. Graphs Objective
Network Science: A Short Introduction i3 Workshop
Refresh and Get Ready for More
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graphs Chapter 13.
Graphs Chapter 11 Objectives Upon completion you will be able to:
Peer-to-Peer and Social Networks Fall 2017
Graphs Chapter 7 Visit for more Learning Resources.
Introduction to Graphs
Introduction to Graphs
Presentation transcript:

Complex Networks Analysis Information Systems Engineering ‎ (2013 A) Instructor: Rami Puzis TA: Luiza Web: Coursera: Office hours: Schedule via Slides are taken in part from Network Science class 2012 (

Course schedule TopicWeek Introduction, Graph Theory, 1 Properties of networks 2-3 Centrality measures 4-7 Community structure 8-9 Generative models Diffusion in networks 11-13

Exercise 1 (due 31/10/2013) – Find and download four different networks from four different web sites. The web sites should reside in different domains. At least one network should have less than 1,000 vertices and at least one network should have more than 100,000 vertices. – Use gephi of other network analysis software for a nice layout of the networks and submit PDF of the network visualization. – Fill the course questioner.

WHY COMPLEX NETWORKS

TRANSPORTATION:

Communication networks domain 2 domain 1 domain 3 rout er

Thex A SIMPLE STORY (2) Predicting the H1N1 pandemic Network Science: Introduction 2012

RealProjected EPIDEMIC FORECAST Predicting the H1N1 pandemic Network Science: Introduction 2012

Thex Network Science: Introduction January 10, 2011 The August 14, 2003 outage Network Science: Introduction 2012

HUMANS GENES Humans have only about three times as many genes as the fly, so human complexity seems unlikely to come from a sheer quantity of genes. Rather, some scientists suggest, each human has a network with different parts like genes, proteins and groups. Network Science: Introduction 2012

Complex systems Made of many non-identical elements connected by diverse interactions. NETWORK HUMANS GENES Drosophila Melanogaster Homo Sapiens Network Science: Introduction 2012

Drosophila Melanogaster Homo Sapiens In the generic networks shown, the points represent the elements of each organism’s genetic network, and the dotted lines show the interactions between them. HUMANS GENES Network Science: Introduction 2012

HARDWARE

SOFTWARE:

Network Science: Introduction 2012

THE LIFE OF NETWORKS Network Science: Introduction 2012

THE LIFE OF NETWORKS Network Science: Introduction 2012

Graph theory: 1735, Euler Social Network Research: 1930s, Moreno Communication networks/internet: 1960s Ecological Networks: May, THE HISTORY OF NETWORK ANALYSIS Network Science: Introduction 2012

NETWORK SCIENCE The science of the 21 st century Network Science: Introduction 2012

Data Availability: Universality: The (urgent) need to understand complexity: THE EMERGENCE OF NETWORK SCIENCE Movie Actor Network, 1998; World Wide Web, C elegans neural wiring diagram 1990 Citation Network, 1998 Metabolic Network, 2000; PPI network, 2001 The architecture of networks emerging in various domains of science, nature, and technology are more similar to each other than one would have expected. Despite the challenges complex systems offer us, we cannot afford to not address their behavior, a view increasingly shared both by scientists and policy makers. Networks are not only essential for this journey, but during the past decade some of the most important advances towards understanding complexity were provided in context of network theory. Network Science: Introduction 2012

Thex If you were to understand the spread of diseases, can you do it without networks? If you were to understand the WWW structure, searchability, etc, hopeless without invoking the Web’s topology. If you want to understand human diseases, it is hopeless without considering the wiring diagram of the cell. MOST IMPORTANT Networks Really Matter Network Science: Introduction 2012

GRAPH THEORY AND BASIC TERMINOLOGY

Can one walk across the seven bridges and never cross the same bridge twice? THE BRIDGES OF KONIGSBERG Euler PATH or CIRCUIT: return to the starting point by traveling each link of the graph once and only once. Network Science: Graph Theory 2012

COMPONENTS OF A COMPLEX SYSTEM  components: nodes, vertices N  interactions: links, edges L  system: network, graph (N,L) Network Science: Graph Theory 2012

network often refers to real systems www, social network metabolic network. Language: (Network, node, link) graph: mathematical representation of a network web graph, social graph (a Facebook term) Language: (Graph, vertex, edge) We will try to make this distinction whenever it is appropriate, but in most cases we will use the two terms interchangeably. NETWORKS OR GRAPHS? Network Science: Graph Theory 2012

A COMMON LANGUAGE Peter Mary Albert co-worker friend brothers friend Protein 1 Protein 2 Protein 5 Protein 9 Movie 1 Movie 3 Movie 2 Actor 3 Actor 1 Actor 2 Actor 4 N=4 L=4 Network Science: Graph Theory 2012

The choice of the proper network representation determines our ability to use network theory successfully. In some cases there is a unique, unambiguous representation. In other cases, the representation is by no means unique. For example,, the way we assign the links between a group of individuals will determine the nature of the question we can study. CHOOSING A PROPER REPRESENTATION Network Science: Graph Theory 2012

If you connect individuals that work with each other, you will explore the professional network. CHOOSING A PROPER REPRESENTATION Network Science: Graph Theory 2012

CHOOSING A PROPER REPRESENTATION If you connect those that have a romantic and sexual relationship, you will be exploring the sexual networks. HOWEVER Could you investigate Sexually Transmitted Diseases without time series data?

CHOOSING A PROPER REPRESENTATION Grey arrows indicate STD propagation chance in one Direction Blue lines indicate STD propagation chance In both directions

If you connect individuals based on their first name (all Peters connected to each other), you will be exploring what? It is a network, nevertheless. CHOOSING A PROPER REPRESENTATION Network Science: Graph Theory 2012

Joe Mary Lisa Bob Ted Dina Ed An n Mia Jim Steve Brad Ellie Edna Mind y Ben LuisLea Anna Annotated networks

Joe Mary Lisa Bob Ted Dina Ed An n Mia Jim Steve Brad Ellie Edna Mind y Ben LuisLea Anna poor average rich teen old adult young adult Colleague Friend Child Annotated networks

Network Science: Graph Theory 2012

A ij =1 if there is a link between node i and j A ij =0 if nodes i and j are not connected to each other. ADJACENCY MATRIX Note that for a directed graph (right) the matrix is not symmetric Network Science: Graph Theory 2012

a b c d e f g h a b c d e f g h ADJACENCY MATRIX b e g a c f h d Network Science: Graph Theory 2012

3 GRAPHOLOGY 1 UndirectedDirected Actor network, protein-protein interactionsWWW, citation networks Network Science: Graph Theory 2012

GRAPHOLOGY 2 Unweighted (undirected) Weighted (undirected) protein-protein interactions, wwwCall Graph, metabolic networks Network Science: Graph Theory 2012

What do the numbers mean? Semantics! Link weights are used to quantify semantics length, strength, capacity, … Network Science: Graph Theory WeightsLinks Distance, capacityRoad network Number of s, size of the s network Number of publications Coauthoirship

GRAPHOLOGY 3 Self-interactionsMultigraph (undirected) Protein interaction network, wwwSocial networks, collaboration networks Network Science: Graph Theory 2012

GRAPHOLOGY 4 Complete Graph (undirected) Actor networks Network Science: Graph Theory 2012

GRAPHOLOGY: Real networks can have multiple characteristics WWW > directed multigraph with self-interactions Protein Interactions > undirected unweighted with self-interactions Collaboration network > undirected multigraph or weighted. Mobile phone calls > directed, weighted. Facebook Friendship links > undirected, unweighted. Network Science: Graph Theory 2012

bipartite graph (or bigraph) is a graph whose nodes can be divided into two disjoint sets U and V such that every link connects a node in U to one in V; that is, U and V are independent sets.graph disjoint setsindependent sets Examples: Hollywood actor network Collaboration networks Disease network (diseasome) BIPARTITE GRAPHS Network Science: Graph Theory 2012 U V U V

Gene network GENOME PHENOME DISEASOME Disease network Goh, Cusick, Valle, Childs, Vidal & Barabási, PNAS (2007) GENE NETWORK – DISEASE NETWORK Network Science: Graph Theory 2012

ADJACENCY MATRIX AND NODE DEGREES Undirected Directed Network Science: Graph Theory 2012

Node degree: the number of links connected to the node. NODE DEGREES Undirected In directed networks we can define an in-degree and out-degree. The (total) degree is the sum of in- and out-degree. Source: a node with k in = 0; Sink: a node with k out = 0. Directed A G F B C D E A B

We have a sample of values x 1,..., x N Average (a.k.a. mean) : typical value = (x 1 + x x N )/N = Σ i x i /N A BIT OF STATISTICS Network Science: Graph Theory 2012

N – the number of nodes in the graph AVERAGE DEGREE Undirected Directed A F B C D E j i Network Science: Graph Theory 2012

Most networks observed in real systems are sparse: WWW (ND Sample): N=325,729;L= L max =10 12 =4.51 Protein (S. Cerevisiae): N= 1,870;L=4,470L max =10 7 =2.39 Coauthorship (Math): N= 70,975; L= L max = =3.9 Movie Actors: N=212,250; L= L max = =28.78 (Source: Albert, Barabasi, RMP2002) REAL NETWORKS ARE SPARSE Network Science: Graph Theory 2012 Average degree 0N2Log(N) O(N)O(1) TreesComplete graph Dense graphsSparse graphs Disconnected

Network Science: Graph Theory 2012

A path is a sequence of nodes in which each node is adjacent to the next one P i0,in of length n between nodes i 0 and i n is an ordered collection of n+1 nodes and n links A path can intersect itself and pass through the same link repeatedly. Each time a link is crossed, it is counted separately A legitimate path on the graph on the right: ABCBCADEEBA In a directed network, the path can follow only the direction of an arrow. PATHS A B C D E Network Science: Graph Theory 2012

PATHOLOGY: Cycle Path A path with the same start and end node. A sequence of links/nodes. Network Science: Graph Theory 2012

PATHOLOGY: Simple Cycle Simple Path A cycle that does not intersect itself. A path that does not intersect itself. Network Science: Graph Theory 2012

PATHOLOGY: Eulerian Path Hamiltonian Path A path that visits each node exactly once. A path that traverses each link exactly once. Network Science: Graph Theory 2012

N ij,number of paths between any two nodes i and j: Length n=1: If there is a link between i and j, then A ij =1 and A ij =0 otherwise. Length n=2: If there is a path of length two between i and j, then A ik A kj =1, and A ik A kj =0 otherwise. The number of paths of length 2: Length n: In general, if there is a path of length n between i and j, then A ik …A lj =1 and A ik …A lj =0 otherwise. The number of paths of length n between i and j is * * holds for both directed and undirected networks. NUMBER OF PATHS BETWEEN TWO NODES Adjacency Matrix Network Science: Graph Theory 2012

The distance (shortest path, geodesic path) between two nodes is defined as the number of edges along the shortest path connecting them. *If the two nodes are disconnected, the distance is infinity. In directed graphs each path needs to follow the direction of the arrows. Thus in a digraph the distance from node A to B (on an AB path) is generally different from the distance from node B to A (on a BCA path). DISTANCE IN A GRAPH Shortest Path, Geodesic Path D C A B D C A B Network Science: Graph Theory 2012

Distance between node 1 and node 4: 1.Start at 1. FINDING DISTANCES: BREADTH FIRST SEATCH 1 Network Science: Graph Theory 2012

Distance between node 1 and node 4: 1.Start at 1. 2.Find the nodes adjacent to 1. Mark them as at distance 1. Put them in a queue. FINDING DISTANCES: BREADTH FIRST SEATCH Network Science: Graph Theory 2012

Distance between node 1 and node 4: 1.Start at 1. 2.Find the nodes adjacent to 1. Mark them as at distance 1. Put them in a queue. 3.Take the first node out of the queue. Find the unmarked nodes adjacent to it in the graph. Mark them with the label of 2. Put them in the queue. FINDING DISTANCES: BREADTH FIRST SEATCH Network Science: Graph Theory 2012

Distance between node 1 and node 4: 1.Repeat until you find node 4 or there are no more nodes in the queue. 2.The distance between 1 and 4 is the label of 4 or, if 4 does not have a label, infinity. FINDING DISTANCES: BREADTH FIRST SEATCH Network Science: Graph Theory 2012

Diameter: d max the maximum distance between any pair of nodes. What is the diameter of a disconnected graph? Average distance,, for a connected directed graph: where d ij is the distance from node i to node j NETWORK DIAMETER AND AVERAGE DISTANCE Network Science: Graph Theory 2012

PATHOLOGY: summary Path Shortest Path A sequence of nodes such that each node is connected to the next node along the path by a link. The path with the shortest length between two nodes (distance). Network Science: Graph Theory 2012

PATHOLOGY: summary Diameter Average Path Length The longest shortest path in a graph The average of the shortest paths for all pairs of nodes. Network Science: Graph Theory 2012

Connected (undirected) graph: any two vertices can be joined by a path. A disconnected graph is made up by two or more connected components. Bridge: if we erase it, the graph becomes disconnected. Largest Component: Giant Component The rest: Isolates CONNECTIVITY OF UNDIRECTED GRAPHS D C A B F F G D C A B F F G Network Science: Graph Theory 2012

The adjacency matrix of a network with several components can be written in a block- diagonal form, so that nonzero elements are confined to squares, with all other elements being zero: Figure after Newman, 2010 CONNECTIVITY OF UNDIRECTED GRAPHS Adjacency Matrix Network Science: Graph Theory 2012

Strongly connected directed graph: has a path from each node to every other node and vice versa (e.g. AB path and BA path). Weakly connected directed graph: has a path between each pair of nodes in either direction (e.g. AB path or BA path). Strongly connected components can be identified, but not every node is part of a nontrivial strongly connected component. In-component : nodes that can reach the scc, Out-component : nodes that can be reached from the scc. CONNECTIVITY OF DIRECTED GRAPHS D C A B F G E E C A B G F D Network Science: Graph Theory 2012

Degree distribution p k THREE CENTRAL QUANTITIES IN NETWORK SCIENCE Average path length Clustering coefficient C Network Science: Graph Theory 2012

We have a sample of values x 1,..., x N Distribution of x (a.k.a. PDF): probability that a randomly chosen value is x P(x) = (# values x) / N Σ i P(x i ) = 1 always! STATISTICS REMINDER Histograms >>> Network Science: Graph Theory 2012

Degree distribution P(k): probability that a randomly chosen vertex has degree k N k = # nodes with degree k P(k) = N k / N k P(k) DEGREE DISTRIBUTION Network Science: Graph Theory 2012

discrete representation: p k is the probability that a node has degree k. continuum description: p(k) is the pdf of the degrees, where represents the probability that a node’s degree is between k 1 and k 2. Normalization condition: where K min is the minimal degree in the network. DEGREE DISTRIBUTION Network Science: Graph Theory 2012

Local Clustering Coefficient: what portion of your neighbors are connected? Node i with degree k i C i in [0,1] CLUSTERING COEFFICIENT Network Science: Graph Theory 2012

Degree distribution: P(k) Path length: Clustering coefficient: THREE CENTRAL QUANTITIES IN NETWORK SCIENCE Network Science: Graph Theory 2012

A. Degree distribution: p k B. Path length: C. Clustering coefficient: THREE CENTRAL QUANTITIES IN NETWORK SCIENCE Network Science: Graph Theory 2012