Mathematics of Networks (Cont)

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 9 Graphs.
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.
Introduction to Graphs
Graph Theory.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Prof. Amr Goneid, AUC1 Analysis & Design of Algorithms (CSCE 321) Prof. Amr Goneid Department of Computer Science, AUC Part R5. Graphs.
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
Introduction to Graphs
W. D. Grover TRLabs & University of Alberta © Wayne D. Grover 2002, 2003 Graph theory and routing (initial background) E E Lecture 4.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
School of Information University of Michigan SI 614 Basic network concepts and intro to Pajek Lecture 2 Instructor: Lada Adamic.
CS8803-NS Network Science Fall 2013
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Social Media Mining Graph Essentials.
GRAPHS Education is what remains after one has forgotten what one has learned in school. Albert Einstein Albert Einstein Smitha N Pai.
TELCOM2125: Network Science and Analysis
GRAPH Learning Outcomes Students should be able to:
Graphs CS /02/05 Graphs Slide 2 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved Definition.
Data Structures Using C++ 2E
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Been-Chian Chien, Wei-Pang Yang, and Wen-Yang Lin 6-1 Chapter 6 Graphs Introduction to Data Structure CHAPTER 6 GRAPHS 6.1 The Graph Abstract Data Type.
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
Lecture 13 Graphs. Introduction to Graphs Examples of Graphs – Airline Route Map What is the fastest way to get from Pittsburgh to St Louis? What is the.
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,
Chapter 2 Graph Algorithms.
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.
Network properties Slides are modified from Networks: Theory and Application by Lada Adamic.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
COM1721: Freshman Honors Seminar A Random Walk Through Computing Lecture 2: Structure of the Web October 1, 2002.
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.
CS 200 Algorithms and Data Structures
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
Data Structures & Algorithms Graphs
Basic Notions on Graphs. The House-and-Utilities Problem.
1 12/2/2015 MATH 224 – Discrete Mathematics Formally a graph is just a collection of unordered or ordered pairs, where for example, if {a,b} G if a, b.
Lecture 4: Mathematics of Networks CS 790g: Complex Networks Slides are modified from Networks: Theory and Application by Lada Adamic.
Most of contents are provided by the website Graph Essentials TJTSD66: Advanced Topics in Social Media.
CSS106 Introduction to Elementary Algorithms
1 Graphs Theory UNIT IV. 2Contents  Basic terminology,  Multi graphs and weighted graphs  Paths and circuits  Shortest path in weighted graph  Hamiltonian.
An Introduction to Graph Theory
Graph Theory and Applications
Introduction to Graph Theory
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Graph Theory Unit: 4.
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.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Planarity Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT.
Graph Theory Graph Theory - History Leonhard Euler's paper on “Seven Bridges of Königsberg”, published in 1736.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Lecture 20. Graphs and network models 1. Recap Binary search tree is a special binary tree which is designed to make the search of elements or keys in.
1 Data Structures and Algorithms Graphs. 2 Graphs Basic Definitions Paths and Cycles Connectivity Other Properties Representation Examples of Graph Algorithms:
Lecture 9 Measures and Metrics. Cocitation and Bibliographic coupling 2.
Graph Theory An Introduction.
Graph theory Definitions Trees, cycles, directed graphs.
CS120 Graphs.
Network Science: A Short Introduction i3 Workshop
Graph Algorithm.
Graphs Chapter 13.
Introduction to Graph Theory
Presentation transcript:

Mathematics of Networks (Cont) Lecture 4: Mathematics of Networks (Cont) CS 765: Complex Networks Slides are modified from Networks: Theory and Application by Lada Adamic

Trees Trees are undirected graphs that contain no cycles For n nodes, number of edges m = n-1 A node can be dedicated as the root

examples of trees In nature Man made Computer science Network analysis river networks arteries (or veins, but not both) Man made sewer system Computer science binary search trees decision trees (AI) Network analysis minimum spanning trees from one node – how to reach all other nodes most quickly may not be unique, because shortest paths are not always unique depends on weight of edges

Planar graphs A graph is planar if it can be drawn on a plane without any edges crossing

Cliques and complete graphs Kn is the complete graph (clique) with K vertices each vertex is connected to every other vertex there are n*(n-1)/2 undirected edges K5 K3 K8

Kuratowski’s theorem Every non-planar network contains at least one subgraph that is an expansion of K5 or K3,3. K5 K3,3 Expansion: Addition of new node in the middle of edges. Research challenge: Degree of planarity?

#s of planar graphs of different sizes 1:1 2:2 3:4 4:11 Every planar graph has a straight line embedding

Edge contractions defined A finite graph G is planar if and only if it has no subgraph that is homeomorphic or edge-contractible to the complete graph in five vertices (K5) or the complete bipartite graph K3, 3. (Kuratowski's Theorem)

Peterson graph Example of using edge contractions to show a graph is not planar

Bi-cliques (cliques in bipartite graphs) Km,n is the complete bipartite graph with m and n vertices of the two different types K3,3 maps to the utility graph Is there a way to connect three utilities, e.g. gas, water, electricity to three houses without having any of the pipes cross? Utility graph K3,3

Node degree 1 Outdegree = 1 Indegree = A = 2 Node degree 3 1 4 1 5 Outdegree = A = example: outdegree for node 3 is 2, which we obtain by summing the number of non-zero entries in the 3rd row 1 Indegree = A = example: the indegree for node 3 is 1, which we obtain by summing the number of non-zero entries in the 3rd column

Degree sequence and Degree distribution Degree sequence: An ordered list of the (in,out) degree of each node In-degree sequence: [2, 2, 2, 1, 1, 1, 1, 0] Out-degree sequence: [2, 2, 2, 2, 1, 1, 1, 0] (undirected) degree sequence: [3, 3, 3, 2, 2, 1, 1, 1] Degree distribution: A frequency count of the occurrence of each degree In-degree distribution: [(2,3) (1,4) (0,1)] Out-degree distribution: [(2,4) (1,3) (0,1)] (undirected) distribution: [(3,3) (2,2) (1,3)]

Structural Metrics: Degree distribution What if it is directed ?

Characterizing networks: How dense are they?

network metrics: graph density Of the connections that may exist between n nodes directed graph emax = n*(n-1) undirected graph emax = n*(n-1)/2 What fraction are present? density = e/ emax For example, out of 12 possible connections, this graph has 7, giving it a density of 7/12 = 0.583

As n → ∞, a graph whose density reaches Graph density Would this measure be useful for comparing networks of different sizes (different numbers of nodes)? As n → ∞, a graph whose density reaches 0 is a sparse graph a constant is a dense graph

Characterizing networks: How far apart are things?

Network metrics: paths A path is any sequence of vertices such that every consecutive pair of vertices in the sequence is connected by an edge in the network. For directed: traversed in the correct direction for the edges. path can visit itself (vertex or edge) more than once Self-avoiding paths do not intersect themselves. Path length r is the number of edges on the path Called hops

Network metrics: paths  

Network metrics: shortest paths   A B C D E 1 2 3

Structural metrics: Average path length 1 ≤ L ≤ D ≤ N-1

Eulerian Path Euler’s Seven Bridges of Königsberg one of the first problems in graph theory Is there a route that crosses each bridge only once and returns to the starting point? Source: http://en.wikipedia.org/wiki/Seven_Bridges_of_Königsberg Image 1 – GNU v1.2: Bogdan, Wikipedia; http://commons.wikimedia.org/wiki/Commons:GNU_Free_Documentation_License Image 2 – GNU v1.2: Booyabazooka, Wikipedia; http://commons.wikimedia.org/wiki/Commons:GNU_Free_Documentation_License Image 3 – GNU v1.2: Riojajar, Wikipedia; http://commons.wikimedia.org/wiki/Commons:GNU_Free_Documentation_License

Eulerian and Hamiltonian paths Hamiltonian path is self avoiding If starting point and end point are the same: only possible if no nodes have an odd degree as each path must visit and leave each shore If don’t need to return to starting point can have 0 or 2 nodes with an odd degree Eulerian path: traverse each edge exactly once Hamiltonian path: visit each vertex exactly once

Characterizing networks: Is everything connected?

Network metrics: components If there is a path from every vertex in a network to every other, the network is connected otherwise, it is disconnected Component: A subset of vertices such that there exist at least one path from each member of the subset to others and there does not exist another vertex in the network which is connected to any vertex in the subset Maximal subset A singeleton vertex that is not connected to any other forms a size one component Every vertex belongs to exactly one component

components in directed networks Weakly connected components: every node can be reached from every other node by following links in either direction A B C D E F G H Weakly connected components A B C D E G H F Strongly connected components Each node within the component can be reached from every other node in the component by following directed links A B C D E F G H Strongly connected components B C D E A G H F

components in directed networks Every strongly connected component of more than one vertex has at least one cycle Out-component: set of all vertices that are reachable via directed paths starting at a specific vertex v Out-components of all members of a strongly connected component are identical In-component: set of all vertices from which there is a direct path to a vertex v In-components of all members of a strongly connected component are identical A B C D E F G H

network metrics: size of giant component if the largest component encompasses a significant fraction of the graph, it is called the giant component

The Web is a directed graph: bowtie model of the web The Web is a directed graph: webpages link to other webpages The connected components tell us what set of pages can be reached from any other just by surfing no ‘jumping’ around by typing in a URL or using a search engine Broder et al. 1999 – crawl of over 200 million pages and 1.5 billion links. SCC – 27.5% IN and OUT – 21.5% Tendrils and tubes – 21.5% Disconnected – 8%

Edge independent paths: if they share no common edge Vertex independent paths: if they share no common vertex except start and end vertices Vertex-independent => Edge-independent Also called disjoint paths These set of paths are not necessarily unique Connectivity of vertices: the maximal number of independent paths between a pair of vertices Used to identify bottlenecks and resiliency to failures

Cut Sets and Maximum Flow A minimum cut set is the smallest cut set that will disconnect a specified pair of vertices Need not to be unique Menger’s theorem: If there is no cut set of size less than n between a pair of vertices, then there are at least n independent paths between the same vertices. Implies that the size of min cut set is equal to maximum number of independent paths (for both edge and vertex independence) Maximum Flow between a pair of vertices is the number of edge independent paths times the edge capacity.

Graph Laplacian