+ GRAPH Algorithm Dikompilasi dari banyak sumber.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Lecture 15. Graph Algorithms
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
www.brainybetty.com1 MAVisto A tool for the exploration of network motifs By Guo Chuan & Shi Jiayi.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Introduction This chapter explores graphs and their applications in computer science This chapter explores graphs and their applications in computer science.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 excerpts Graphs (breadth-first-search)
Edited by Malak Abdullah Jordan University of Science and Technology Data Structures Using C++ 2E Chapter 12 Graphs.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Graph & BFS.
1 Section 8.2 Graph Terminology. 2 Terms related to undirected graphs Adjacent: 2 vertices u & v in an undirected graph G are adjacent (neighbors) in.
SE561 Math Foundations Week 11 Graphs I
Graph Theory in CS Route Search in Online Map Services
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
SubSea: An Efficient Heuristic Algorithm for Subgraph Isomorphism Vladimir Lipets Ben-Gurion University of the Negev Joint work with Prof. Ehud Gudes.
Selected Topics in Data Networking Graph Representation.
GRAPH DATABASES. GRAPH Databases 4/11/2014dr. salih yurttaş 2.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Graphs Rosen 8.1, 8.2. There Are Many Uses for Graphs! Networks Data organizations Scene graphs Geometric simplification Program structure and processes.
GRAPH Learning Outcomes Students should be able to:
Data Structures Using C++ 2E
1 Graphs Chapters 9.1 and 9.2 University of Maryland Chapters 9.1 and 9.2 Based on slides by Y. Peng University of Maryland.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
 期中测验时间:  11 月 4 日  课件 集合,关系,函数,基数, 组合数学.  Ⅰ Introduction to Set Theory  1. Sets and Subsets  Representation of set:  Listing elements, Set builder.
Module #19: Graph Theory: part I Rosen 5 th ed., chs. 8-9 내년 3 월 ? 교환 학생 프로그램 영어 점수 미리미리 준비하세요.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Introduction to Graphs. Introduction Graphs are a generalization of trees –Nodes or verticies –Edges or arcs Two kinds of graphs –Directed –Undirected.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
1 CS104 : Discrete Structures Chapter V Graph Theory.
Module #19: Graph Theory: part II Rosen 5 th ed., chs. 8-9.
1 Frequent Subgraph Mining Jianlin Feng School of Software SUN YAT-SEN UNIVERSITY June 12, 2010.
GRAPHS THEROY. 2 –Graphs Graph basics and definitions Vertices/nodes, edges, adjacency, incidence Degree, in-degree, out-degree Subgraphs, unions, isomorphism.
Graphs What are Graphs? General meaning in everyday math: A plot or chart of numerical data using a coordinate system. Technical meaning in discrete.
Data Structures & Algorithms Graphs
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.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
EMIS 8373: Integer Programming Combinatorial Relaxations and Duals Updated 8 February 2005.
Graph Theory and Applications
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Ver Chapter 13: Graphs Data Abstraction & Problem Solving with C++
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
+ GRAPH Algorithm Dikompilasi dari banyak sumber.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
+ GRAPH Algorithm Dikompilasi dari banyak sumber.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
+ GRAPH Algorithm 2 Dikompilasi dari banyak sumber.
GRAPH THEORY Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS )
1 Graphs Chapters 10.1 and 10.2 University of Maryland Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Subject Four Graphs Data Structures. What is a graph? A data structure that consists of a set of nodes (vertices) and a set of edges that relate the nodes.
Trees.
Graphs: Definitions and Basic Properties
Copyright © Zeph Grunschlag,
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
Minimum Spanning Tree 8/7/2018 4:26 AM
Graph theory Definitions Trees, cycles, directed graphs.
Agenda Lecture Content: Introduction to Graph Path and Cycle
Graphs Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Biconnectivity SEA PVD ORD FCO SNA MIA 11/16/2018 2:31 AM
Graph.
Graphs All tree structures are hierarchical. This means that each node can only have one parent node. Trees can be used to store data which has a definite.
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
Discrete Mathematics Lecture 12: Graph Theory
Let us switch to a new topic:
Lecture 10: Graphs Graph Terminology Special Types of Graphs
Chapter 5 Graphs the puzzle of the seven bridge in the Königsberg,
Biconnectivity SEA PVD ORD FCO SNA MIA 5/6/2019 5:08 PM Biconnectivity
Biconnectivity SEA PVD ORD FCO SNA MIA 5/23/ :21 PM
Concepts of Computation
Presentation transcript:

+ GRAPH Algorithm Dikompilasi dari banyak sumber

+ GRAPH ??? Node / Vertex / Titik Edge / busur / Sisi

+ Sumber : big-graph-data

+

+ GRAPH DATABASE Is a database whose specific purpose is the storage of graph-oriented data structures. Thus it’s all about storing data as vertices and edges. By definition, a graph database is any storage solution where connected elements are linked together without using an index.definition In the database ecosystem, graph database could address: process highly connected data easily manage complex and flexible data models offer exceptional performances for local reads, by traversing the graph Sumber:

+ Graph vs relational databases A graph database is a good fit for exploring data that are structured like a graph (or derived such as a tree), in particular when the relationships between items are significant. The ideal use case for a query, is starting from one or several nodes and traversing the graph. Despite their names though, relational databases are less suited for exploring relationships. Such use cases need indices, in particular foreign keys. As stated before, with graph databases traversals are performed by following physical pointers, whereas foreign keys are logical pointers. Sumber:

+ Example Graph vs Relational To make it clearer, let’s take a naïve example where we try to store companies, people who work for them, and for how long they have been working there. For instance, we are trying to find all people working at Google. With a relational model, we could execute the following query, which would probably need 3 index lookups corresponding to the foreign keys in the model. In the case of a graph, the query will need 1 index lookup, then will traverse relationships by dereferencing physical pointers directly. Sumber:

+

+ Classification of graph processing tools (source: Marko Rodriguez)

+ Graphs, Graphs, Everywhere Aspirin Yeast protein interaction network from H. Jeong et al Nature 411, 41 (2001)

Conceptually, a graph is formed by vertices and edges connecting the vertices. Formally, a graph is a pair of sets (V,E), where V is the set of vertices and E is the set of edges, formed by pairs of vertices. Definition of Graphs

Example of Graphs

The two vertices u and v are end vertices of the edge (u, v). Edges that have the same end vertices are parallel. An edge of the form(v,v)is a loop. A graph is simple if it has no parallel edges or loops. A graph with no edges (i.e. E is empty) is empty. A graph with no vertices (i.e. V and E are empty) is a null graph. A graph with only one vertex is trivial. Edges are adjacent if they share a common end vertex. Two vertices u and v are adjacent if they are connected by an edge, in other words, (u, v) is an edge. The degree of the vertex v, written as d(v),is the number of edges with v as an end vertex. By convention, we count a loop twice and parallel edges contribute separately. A pendant vertex is a vertex whose degree is 1. An edge that has a pendant vertex as an end vertex is a pendant edge. An isolated vertex is a vertex whose degree is 0. Definition of Graphs (cont..)

+ Terminology G = (V, E) The minimum degree of the vertices in a graph G is denoted δ (G) (= 0 if there is an isolated vertex in G). Similarly, we write ∆(G) as the maximum degree of vertices in G. Example. (Continuing from the previous example) δ (G) = 0 and ∆(G) = 5.

+ Theorema Since every edge has two end vertices, we get Theorem1.1.The graph G=(V,E), where V ={v1,...,vn} and E={e1,...,em}, satisfies Corollary. Every graph has an even number of vertices of odd degree.

+ Terminology A simple graph that contains every possible edge between all the vertices is called a complete graph. A complete graph with n vertices is denoted as Kn. The first four complete graphs are given as examples: Coba perhatikan pola graf dari K1 s.d K5, apa kesimpulan yg bisa diambil ? pada graf komplit, degree setiap titik adalah n-1.

+ Subgraph The graph G1 = (V1, E1) is a subgraph of G2 = (V2, E2) if 1. V1 ⊆ V2 and 2. Every edge of G1 is also an edge of G2. Example. We have the graph G2:

+ Subgraph (cont..) From G2, we can have many subgraph such as:

+ Subgraph by edge induction The subgraph of G = (V, E) induced by the edge set E1 ⊆ E is: G1 = (V1, E1) =def. E1, where V1 consists of every end vertex of the edges in E1. Example. (Continuing from above) From the original graph G, the edges e2, e3 and e5 induce the subgraph

+ Subgraph by vertex induction The subgraph of G = (V, E) induced by the vertex set V1 ⊆ V is: G1 = (V1, E1) =def. V1, Where E1 consists of every edge between the vertices in V1. Example. (Continuing from above) From the original graph G, the vertices v1, v3 and v5 induce the subgraph

+ Subgraph by vertex and edgeinduction From graph G2 below, make subgraph G1 which is : induced by v1, v2 and v4 ! Induced by e2, e4 and e6 ! Induced by v1,v3 and e4 !

+ Clique of G A complete subgraph of G is called a clique of G. Example G: How many cliques with 4 vertices and 3 vertices from the graph G above ?

+ Isomorphisme Two graphs G 1 (V 1, E 1 ) and G 2 (V 2, E 2 ) are isomorphic if they are topologically identical There is a mapping from V 1 to V 2 such that each edge in E 1 is mapped to a single edge in E 2 and vice-versa

+ Example of Graph Isomorphisme

+ Apakah 2 graf ini isomorfis ?

+ Solusi : lihat 4-cycle Kesimpulan : tidak isomorfis !

+ References Graph Theory handbook by Keijo Ruohonen Slide Graph mining seminar by Prof. Ehud Gudes Slide TITAN THE RISE OF BIG GRAPH DATA by Marko Rodriguez and Matthias Broecheler ( data). data Blog Octo ( overview/)