Presentation is loading. Please wait.

Presentation is loading. Please wait.

Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.

Similar presentations


Presentation on theme: "Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1."— Presentation transcript:

1 Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 10.1 Graphs: Definitions and Basic Properties

2 Terminologies A graph G consists of two finites sets A nonempty set V(G) of vertices. A set E(G) of edges, where each edge is associated with a set consisting of either one or two vertices called its endpoints. 2 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

3 Terminologies – cont’ An edge with just one endpoint is called a loop. Two or more distinct edges with the same set of endpoints are said to be parallel. An edge is said to connect its endpoints. Two vertices that are connected by an edge are called adjacent. A vertex that is an endpoint of a loop is said to be adjacent to itself. 3 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University Parallel edges Loop

4 Terminologies – cont’ An edge is said to be incident on each of its endpoints, and two edges incident on the same endpoint are called adjacent. A vertex on which no edges are incident is called isolated. 4 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University Parallel edges Loop

5 Drawing More Than One Picture for a Graph Consider the graph specified as follows: Vertex set = Edge set = 5 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

6 Directed graph A directed graph, or digraph, consists of two finite sets: a nonempty set V(G) of vertices and a set D(G) of directed edges, where each is associated with an ordered pair of vertices called its endpoints. If edge e is associated with the pair ( v,w ) of vertices, then e is said to be the (directed) edge from v to w. 6 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

7 Special Graphs A simple graph is a graph that does not have any loops or parallel edges. In a simple graph, an edge with endpoints v and w is denoted { v, w }. Let n be a positive integer. A complete graph on n vertices, denoted, is a simple graph with n vertices and exactly one edge connecting each pair of distinct vertices. 7 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

8 Complete Bipartite Graph Let m and n be positive integers. A complete bipartite graph on vertices, denoted, is a simple graph with distinct vertices, and that satisfies the following properties: For all and for all 8 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

9 Complete Bipartite Graph-cont’ 1.There is an edge from each vertex to each vertex 2.There is no edge from any vertex to any other vertex 3.There is no edge from any vertex to any other vertex 9 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

10 Subgraphs A graph H is said to be a subgraph of a graph G if, and only if, every vertex in H is also a vertex in G, every edge in H is also an edge in G, and every edge in H has the same endpoints as it has in G. 10 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

11 Degree of a Graph Let G be a graph and v a vertex of G. The degree of v, denoted deg( v ), equals the number of edges that are incident on v, with an edge that is a loop counted twice. The total degree of G is the sum of the degree of all the vertices of G. 11 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University deg( a ): 2, deg( b ): 1, deg(c): 1, deg(d): 0 Total degree of G : 4

12 The Handshake Theorem If G is any graph, then the sum of the degrees of all the vertices of G equals twice the number of edges of G. Specifically, if the vertices of G are, where n is a nonnegative integer, then Total degree of G = deg( v 1 ) + deg( v 2 ) + … + deg( v n ) = 2 | E(G) | Brief Proof Each edge has to endpoints, and therefore, for the calculation of the total degree, each endpoint contributes two. If a vertex is not adjacent to any edge, its degree is 0. Otherwise, it should be adjacent to some edges. Corollary 10.1.2 The total degree of a graph is even. A graph with four vertices of degrees 1, 1, 2, and 3 cannot exist. Proposition 10.1.3 In any graph, there are an even number of vertices of odd degree. 12 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University


Download ppt "Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1."

Similar presentations


Ads by Google