Inf 496/596 Topics in Informatics: Analysis of Social Network Data

Similar documents
Graphs. Introduction To Graphs: Exercises. Definitions:

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs

Graphs Definitions. Gunnar Gotshalks. GraphDefinitions 1

Lecture 1: Introduction and Motivation Markus Kr otzsch Knowledge-Based Systems

Paths. Path is a sequence of edges that begins at a vertex of a graph and travels from vertex to vertex along edges of the graph.

KNOWLEDGE GRAPHS. Lecture 1: Introduction and Motivation. TU Dresden, 16th Oct Markus Krötzsch Knowledge-Based Systems

Algorithms. Graphs. Algorithms

Basics of Graph Theory

Course Introduction / Review of Fundamentals of Graph Theory

Chapter 2 Graphs. 2.1 Definition of Graphs

Algorithms: Graphs. Amotz Bar-Noy. Spring 2012 CUNY. Amotz Bar-Noy (CUNY) Graphs Spring / 95

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

Discrete Structures CISC 2315 FALL Graphs & Trees

Introduction III. Graphs. Motivations I. Introduction IV

Elements of Graph Theory

Some Graph Theory for Network Analysis. CS 249B: Science of Networks Week 01: Thursday, 01/31/08 Daniel Bilar Wellesley College Spring 2008

An Introduction to Graph Theory

Introduction aux Systèmes Collaboratifs Multi-Agents

Introduction to Graphs

Graphs. Pseudograph: multiple edges and loops allowed

Discrete Mathematics (2009 Spring) Graphs (Chapter 9, 5 hours)

Lecture 4: Bipartite graphs and planarity

Social Network Analysis

Graph and Digraph Glossary

Varying Applications (examples)

Graph Overview (1A) Young Won Lim 5/9/18

Graph Theory. ICT Theory Excerpt from various sources by Robert Pergl

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

CS473-Algorithms I. Lecture 13-A. Graphs. Cevdet Aykanat - Bilkent University Computer Engineering Department

Network Basics. CMSC 498J: Social Media Computing. Department of Computer Science University of Maryland Spring Hadi Amiri

Discrete mathematics II. - Graphs

Foundations of Discrete Mathematics

CMSC 380. Graph Terminology and Representation

DEFINITION OF GRAPH GRAPH THEORY GRAPHS ACCORDING TO THEIR VERTICES AND EDGES EXAMPLE GRAPHS ACCORDING TO THEIR VERTICES AND EDGES

Graphs, graph algorithms (for image segmentation),... in progress

Graph. Vertex. edge. Directed Graph. Undirected Graph

Assignment 1 Introduction to Graph Theory CO342

CS200: Graphs. Prichard Ch. 14 Rosen Ch. 10. CS200 - Graphs 1

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

WUCT121. Discrete Mathematics. Graphs

Lecture 5: Graphs. Graphs! Euler Definitions: model. Fact! Euler Again!! Planar graphs. Euler Again!!!!

Testing Isomorphism of Strongly Regular Graphs

11/22/2016. Chapter 9 Graph Algorithms. Introduction. Definitions. Definitions. Definitions. Definitions

Geometric Modeling Mortenson Chapter 11. Complex Model Construction

Chapter 9 Graph Algorithms

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

Information Science 2

Lecture 5: Graphs & their Representation

Graphs: Introduction. Ali Shokoufandeh, Department of Computer Science, Drexel University

Lecture 3: Graphs and flows

Lecture 22 Tuesday, April 10

Worksheet for the Final Exam - Part I. Graphs

Graphs. Motivations: o Networks o Social networks o Program testing o Job Assignment Examples: o Code graph:

DS UNIT 4. Matoshri College of Engineering and Research Center Nasik Department of Computer Engineering Discrete Structutre UNIT - IV

Outline. Introduction. Representations of Graphs Graph Traversals. Applications. Definitions and Basic Terminologies

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions


Dieter Jungnickel (2008), Graphs, Networks and Algorithms, 3rd edition, which is available online via SpringerLink.

Lecture 3: Recap. Administrivia. Graph theory: Historical Motivation. COMP9020 Lecture 4 Session 2, 2017 Graphs and Trees

Graph Theory S 1 I 2 I 1 S 2 I 1 I 2

The Matrix-Tree Theorem and Its Applications to Complete and Complete Bipartite Graphs

Graph (1A) Young Won Lim 4/19/18

BACKGROUND: A BRIEF INTRODUCTION TO GRAPH THEORY

Chapter 4 Graphs and Matrices. PAD637 Week 3 Presentation Prepared by Weijia Ran & Alessandro Del Ponte

Chapter 9 Graph Algorithms

CPCS Discrete Structures 1

MAT 280: Laplacian Eigenfunctions: Theory, Applications, and Computations Lecture 18: Introduction to Spectral Graph Theory I. Basics of Graph Theory

Simple graph Complete graph K 7. Non- connected graph

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

Graph definitions. There are two kinds of graphs: directed graphs (sometimes called digraphs) and undirected graphs. An undirected graph

Introduction to Graph Theory

Definition 1.1. A matching M in a graph G is called maximal if there is no matching M in G so that M M.

UNDIRECTED GRAPH: a set of vertices and a set of undirected edges each of which is associated with a set of one or two of these vertices.

Graph Theory Review. January 30, Network Science Analytics Graph Theory Review 1

22.1 Representations of graphs

Chapter 9 Graph Algorithms

Graph Theory: Introduction

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

Lecture 5: Dual graphs and algebraic duality

Graph Theory. Part of Texas Counties.

IMO Training 2008: Graph Theory

Discrete Mathematics

HW Graph Theory Name (andrewid) - X. 1: Draw K 7 on a torus with no edge crossings.

CS302 - Data Structures using C++

Graph Theory. Probabilistic Graphical Models. L. Enrique Sucar, INAOE. Definitions. Types of Graphs. Trajectories and Circuits.

Discrete mathematics

Lecture 1: Examples, connectedness, paths and cycles

0.0.1 Network Analysis

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Graphs. A graph is a data structure consisting of nodes (or vertices) and edges. An edge is a connection between two nodes

CS 206 Introduction to Computer Science II

Graph theory: basic concepts

Introduction to Graphs. common/notes/ppt/

1 Digraphs. Definition 1

Alessandro Del Ponte, Weijia Ran PAD 637 Week 3 Summary January 31, Wasserman and Faust, Chapter 3: Notation for Social Network Data

Theory of Computing. Lecture 10 MAS 714 Hartmut Klauck

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

CS 4407 Algorithms Lecture 5: Graphs an Introduction

Transcription:

Inf 496/596 Topics in Informatics: Analysis of Social Network Data Jagdish S. Gangolly Department of Informatics College of Computing & Information State University of New York at Albany Lecture 1B (Graphs) March 23, 2013

Table of Contents A Motivating example of a network: Königsburgh Problem (Euler, 1735) Basic Concepts Types of Graphs Elementary Graph Theory Definition of a graph Kinds of Graphs: Multigraph and Simple graph Kinds of Graphs: Undirected graph and Directed graphs Data Structures for graphs: lists and matrices Graph Data Structures: An Example

A Motivating example of a network: Königsburgh Problem

Basic Graph Concepts Vertex: Nodes or points usually represent objects Edge/line and arc/arrow: usually represent relations Size of a Graph: The number of edges in the graph, or E Order of a Graph: The number of vertices in the graph, or V Incidence: is a relation that associates with each edge two vertices. Adjacency: Any two vertices u and v are said to be adjacent is there is an edge e that is incident with u and v.

Types of Graphs Undirected graph: The edges have no orientation Directed graph: The arcs (sometimes called directed edges or arrows) have an orientation. An arc a = (x, y) is considered to be directed from x to y; y is called the head and x is called the tail of the arc; y is said to be a direct successor of x, and x is said to be a direct predecessor of y. (Wikipedia) Simple graph: is a graph which has no loops (relation between a vertex and itself) and no more than one edge between any two vertices. Multigraph: a graph with loops, and multiple edges between vertices. Weighted graph: the edges are weighted (i.e.., edges have attributes). Weighted graphs are called networks.

Types of Graphs (Continued) Labelled Graph: where vertices and edges have labels Bipartite Graph: where there are two types of vertices and no edges between vertices of the same type Planar Graph: is a graph whose vertices and edges can be drawn in a plane such that no two of the edges intersect Connected Graph: In an undirected graph G, two vertices u and v are called connected if G contains a path from u to v. Otherwise, they are called disconnected. A graph is called connected if every pair of distinct vertices in the graph is connected; otherwise, it is called disconnected. Weakly Connected Graph: A directed graph is called weakly connected if replacing all of its directed edges with undirected edges produces a connected (undirected) graph.

Types of Graphs (Continued) Strongly Connected Graph: A directed graph is strongly connected or strong if it contains a directed path from u to v and a directed path from v to u for every pair of vertices u, v. Tree: is a connected graph with no cycles. Forest: is a graph with no cycles (i.e. the disjoint union of one or more trees). Hypergraph: a graph where an edge can join more than two vertices.

Elementary Graph Theory: Definition of a graph) An (undirected) Graph G is an ordered pair G = (V, E) where the vertex set V = {v 1, v 2,..., v n }, the edge set E = {e 1, e 2,..., e m } and E = {e 1, e 2,..., e m } {{x, y} V } An Example: V = {v 0, v 1, v 2, v 3 }, V = {e 0, e 1, e 2, e 3 } = {{v 0, v 1 }, {v 1, v 2 }, {v 2, v 3 }, {v 3, v 0 }},, v 0 v 1 v 3 v 2

Kinds of Graphs: Multigraph and Simple graph A graph that has loops and multiple edges between the same nodes is called a multigraph. An example is the following: Source: http://en.wikipedia.org/wiki/multigraph A multigraph that has no loops or multiple edges that share the same nodes is called a simple graph. The graph on the previous slide is a simple graph.

Kinds of Graphs: Undirected graph and Directed graphs In the graph in the previous slides, the edges did not have a direction. If the edges have a direction, the graph is called a directed graph. The edges of a directed graph are sometimes called arrows. See the example below: In the above, we have assumed that the nodes and the edges are primitives in that they do not hold any information beyond their labels or names. However, that models just the structure of the graph, and is not rich enough to study most phenomena. But it is possible to semantically enrich the graph model by having the nodes and edges carry more information besides their labels. For example, in a social networks application, the nodes may represent persons, and the edges may represent the interactions between such persons. The attributes of the persons as well as the attributes relating to the nature of the interactions, and the frequency of the interactions can be incorporated into the model.

Data Structures for graphs: lists and matrices Data relating to social graphs can be represented as lists or matrices. List: Incidence List The edges can be represented as an array of pairs of the nodes that they are incident to. This representation is edge-centric Adjacency List For each node a list of neighbors (nodes with which it shares an edge) Matrices: Incidence Matrix In the incidence matrix the rows represent vertices and the columns represent the edges. The cells take a value 1 if the edge is incident to the node. So each column contains precisely two ones and rest of the cells have zeroes Adjacency matrix In the adjacency matrix both the rows and columns represent vertices. The cell (i, j) takes a value 1 if there is an edge from vertex i to vertex j Distance Matrix Both rows and columns represent vertices. The cell (i, j) takes a value of the distance between vertex i and j, where distance is defined as the length of the path between i and j (number of hops) Laplacian or Kirchoff Matrix Contains information relating to the degree of nodes (number of edges incident to the nodes) as well as adjacency information

Graph Data Structures: An Example (Incidence List) Consider the simple graph G = (V, E) where {V = 1, 2, 3, 4, 5; E = {(1, 2), (1, 5), (2, 3), (2, 4), (2, 5), (3, 4), (4, 2)} Incidence list: 1 : {(1, 2), (1, 5)} 2 : {(2, 1), (2, 3), (2, 4), (2, 5)} 3 : {(3, 2), (3, 4)} 4 : {(4, 2), (4, 3), (4, 5)} 5 : {(5, 1), (5, 2), (5, 4)} Source: http://www.cs.sunysb.edu/ algorith/files/graph-data-structures.shtml

Graph Data Structures: An Example (Adjacency List) Graph: Adjacency List: 1: {2, 5} 2: {1, 3, 4, 5} 3: {2, 4} 4: {2, 3, 5}

Graph Data Structures: An Example (Incidence Matrix) Graph: Incidence Matrix: 1 0 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1 0 0

Graph Data Structures: An Example (Adjacency Matrix) Graph: Graph: Adjacency Matrix: 0 1 0 0 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 1 1 1 0 1 0

Graph Data Structures: An Example (Distance Matrix) Graph: Distance Matrix: 0 1 2 2 1 1 0 1 1 1 2 1 0 1 2 2 1 1 0 1 1 1 2 1 0