1 / 53

Main Menu (Click on the topics below)

Graphs Undirected Graphs Some Basic Definitions Pictorial Representation Directed Graphs Labelled and Unlabelled Graphs Simple Graphs Complete Graphs Bipartite Graphs Subgraph Degree of a Vertex/Graph. Main Menu (Click on the topics below). Graphs. Sanjay Jain, Lecturer,

sarah-cash
Télécharger la présentation

Main Menu (Click on the topics below)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphs Undirected Graphs Some Basic Definitions Pictorial Representation Directed Graphs Labelled and Unlabelled Graphs Simple Graphs Complete Graphs Bipartite Graphs Subgraph Degree of a Vertex/Graph Main Menu (Click on the topics below)

  2. Graphs Sanjay Jain, Lecturer, School of Computing

  3. What is a graph? Introduction f(x) x

  4. . Singapore . New York . KL . . Jakarta London Graphs: Connectivity

  5. Graphs: Games GP1 GP2 GP3 GP6 GP5 GP4

  6. Sentence Noun phrase Verb Phrase Noun phrase Article Adjective Noun Verb Noun Article young man The caught the ball Graphs: Sentence Structure

  7. END OF SEGMENT

  8. . Singapore . New York . KL . . Jakarta London Definition Vertices Edges

  9. An undirected graph, G, consists of two sets a set of vertices called V(G) a set of edges called E(G) Where for each edge we associate a set of one or two vertices from V(G), called the end-points of the edge. The correspondence from edges to end-points is called edge-endpoint function. Undirected Graphs

  10. v3  e3 e1 v2   v1 e2 Undirected Graphs V(G)= {V1, V2 , V3} E(G)= {e1, e2 , e3} e1: {V1, V3}; e2: {V1, V2}; e3: {V2, V3};

  11. END OF SEGMENT

  12. e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Undirected Graphs V(G)={v1, v2, v3, v4, v5, v6} E(G)={e1, e2, e3, e4, e5, e6, e7}

  13. e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Undirected Graphs

  14. END OF SEGMENT

  15. e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Some Basic Definitions Edge is said to connectits endpoints. e6 connects v4 and v5.

  16. e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Some Basic Definitions Edge is said to be incident on each of its endpoints. e2 is incident on v1 and v2.

  17. e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Some Basic Definitions Two edges with same endpoints are said to be paralleledges. e3 ande4 are parallel edges.

  18. e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Some Basic Definitions An edge with only one endpoint is called a loop. e5 ande7 are loop.

  19. e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Some Basic Definitions Two vertices connected by an edge are said to be adjacent to each other. v1 andv2 are adjacent to each other.

  20. e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Some Basic Definitions Two edges having a common end point are said to be adjacent to each other. e1 ande2 are adjacent to each other.

  21. e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Some Basic Definitions If no edge is incident on a vertex, then we say that the vertex is an isolatedvertex. v6 is an isolated vertex.

  22. A graph with no vertices is called an empty graph. A graph with at least one vertex is nonempty. Some Basic Definitions

  23. END OF SEGMENT

  24. V(G)={v1, v2, v3, v4} E(G)={e1, e2} e1 --- {v1, v2} ; e2 --- {v3, v4} .v1 .v3 .v3 v1. .v2 e1 e1 e2 e2 .v4 .v4 .v2 Pictorial Representation

  25. END OF SEGMENT

  26. . . e1 V2 V1 . V3 Directed Graphs e3 e2

  27. Directed Graphs GP1 GP2 GP3 m6 m1 m2 m4 m5 GP6 m3 GP5 GP4

  28. A directed graph (or digraph),G, consists of V(G), the set of vertices D(G) (or E(G)), the set of edges, where each edge is associated with an ordered pair of vertices called its endpoints. If edge e is associated with the pair (u,v), then we say that e is a (directed) edge from uto v. Directed Graphs

  29. . . V1 e1 V2 . e3 e4 e2 V3 Directed Graphs V(G)= {V1, V2 , V3} E(G)= {e1, e2 , e3 , e4 } e1: (V1, V2); e2: (V1, V3); e3: (V2, V3); e4: (V3, V2);

  30. END OF SEGMENT

  31. . Quite often, in pictorial representation, we do not label the vertices and edges. . . . Labeled and Unlabeled Graphs Such graphs are called unlabeled graphs. This is often done in the case when the names of vertices/edges are not important.

  32. END OF SEGMENT

  33. . . . A graph with no loops or parallel edges is called a simple graph. . . . . G3 G2 G1 Simple graphs

  34. For a simple graph we often identify an edge with its end points. For example in the following graph {v1,v2} is often used to refer to the edge e1 with end points {v1,v2}. .v1 e1 .v2 Simple graphs This normally allows us to ignore the naming of the edges for simple graphs.

  35. END OF SEGMENT

  36. G is a complete graph if G is simple and for all distinct vertices v1 and v2 in V(G), there is an edge in E(G) with endpoints {v1 ,v2}. By Kn we denote a complete graph with n vertices. Complete Graphs

  37. K1    K2   K3    K4  

  38. END OF SEGMENT

  39. Suppose G is a simple graph. If there exists a partition V1 and V2 of V(G) such that for all e E(G), one of the endpoints of e is from V1 and the other is from V2      Bipartite Graphs then the graph G is called a bipartite graph.

  40. Suppose G is a simple graph. If there exists a partition V1 and V2 of V(G) such that for all e E(G), one of the endpoints of e is from V1 and the other is from V2 then the graph G is called a bipartite graph.      Bipartite Graphs

  41. END OF SEGMENT

  42. Suppose G is a simple graph. If there exists a partition V1 and V2 of V(G) such that for all e E(G), one of the endpoints of e is from V1 and the other is from V2 , and for all u  V1 and v  V2 there exists an edge in E(G) with endpoint {u,v} Then G is called a complete bipartite graph. By Km,n we denote the complete bipartite graph where V1 and V2 as above have m and n vertices respectively. Complete Bipartite Graphs

  43.     K3,2

  44. END OF SEGMENT

  45. G1 is a subgraph of G2 iff V(G1)  V(G2 ), E(G1)  E(G2 ), and for each e  E(G1) , endpoints of e in G1 and G2 are the same. We use the notation G1G2 to denote that G1 is a subgraph of G2. Subgraphs

  46. e2 v1 v2 e1 v1 e1 v2      v3 G1 G2    e1 v1 v2 e1 v1   v2 e4 e2 e2 e3   v4 e3 v3 v3 G3 G4 G1 G3 G1 G4 G4  G3 G1  G2

  47. END OF SEGMENT

  48. Deg(v)= number of edges incident on v, where we count the loops incident on v twice. Total degree of G = v  V(G) deg(v) e7 v3  e4 e5 e6   e1  v5 e3 v6 v4   e2 v1 v2 Degree of a Vertex/Graph

  49. END OF SEGMENT

  50. Suppose G is a graph. Then total degree of G =deg(v1)+ deg(v2)+……+ deg(vn) =2 (the number of edges in G) Theorem: Total Degree of a Graph

More Related