Like this presentation? Why not share!

# Presentation on graphs

## by ForwardBlog Enewzletter, Administrator at Forward blog on Sep 03, 2012

• 819 views

### Views

Total Views
819
Views on SlideShare
753
Embed Views
66

Likes
0
25
0

### 2 Embeds66

 http://forwardblog.in 62 http://www.forwardblog.in 4

### Categories

Uploaded via SlideShare as Microsoft PowerPoint

## Presentation on graphsPresentation Transcript

• Presentation on graph
• topics• Definition of graph• Some important points• Types of graphs• walk,path & trail• hamiltonian path & circuit• Euler path & circuit• Colouring of graph
• Definition of graph• Formally, a graph is a pair of sets (V,E), where V is the set of vertices and E is the set ofset of• edges, formed by pairs of vertices
• Some important points• Loop and Multiple Edges• A loop is an edge whose endpoints are equal i.e., an edge joining a vertex to it self is called a loop. We say that the graph has multiple edges if in the graph two or more edges joining the same pair of vertices.••••••
• Types of graph- Simple GraphA graph with no loops or multiple edges is called a simple graph. We specify a simple graph by its set of vertices and set of edges, treating the edge set as a set of unordered pairs of vertices and write e = uv (or e = vu) for an edge e with endpoints u and v. Connected Graph A graph that is in one piece is said to be connected, whereas one which splits into several pieces is disconnected.
• • Subgraph • Let G be a graph with vertex set V(G) and edge-list E(G). A subgraph of G is a graph all of whose vertices belong to V(G) and all of whose edges belong to E(G). For example, if G is the connected graph below: •w, z} and E(G) = (uv, uw, vv, vw, wz, wz} then the following four graphs ar
• • Degree (or Valency) • Let G be a graph with loops, and let v be a vertex of G. The degree of v is the number of edges meeting at v, and is denoted by deg(v). • For example, consider, the following graph G • • • The graph G has deg(u) = 2, deg(v) = 3, deg(w) = 4 and deg(z) = 1. Regular GraphA graph is regular if all the vertices of G have the same degree. In particular, if the degree of each vertex is r, the G is regular of degree r.
• • Isomorphic Graphs• Two graph G and H are isomorphic if H can be obtained from G by relabeling the vertices - that is, if there is a one-to-one correspondence between the vertices of G and those of H, such that the number of edges joining any pair of vertices in G is equal to the number of edges joining the corresponding pair of vertices in H. For example, two labeled graphs, such as••
• • Walk• A walk of length k in a graph G is a succession of k edges of G of the form uv, vw, wx, . . . , yz.•• We denote this walk by uvwx . . yz and refer to it as a walk between u and z.• Trail and Path• all the edges (but no necessarily all the vertices) of a walk are different, thenIfthe walk is called a trail. If, in addition, all the vertices are difficult, then the trail is called path. The walk vzzywxy is a trail since the vertices y and z both occur twice. The walk vwxyz is a path since the walk has no repeated vertices.
• Hamiltonian path & circuit• a Hamilton path in the graph (named after an• Irish mathematician, Sir William Rowan Hamilton)., a Hamilton path is a path that visits every vertex in the graph• A Hamilton circuit is a path that visits every vertex in the graph exactly• once and return to the starting vertex. a ba b d c d c
• Euler path & circuit-Euler Path is a path in the graph that passes each edge only once.Euler Circut is a path inthe graph that passeseach edgeonly once and return backto its original position.From Denition, EulerCircuit is a subset of EulerPath
• Colouring of graph Vertex ColoringLet G be a graph with no loops. A k-coloring of G is an assignment of k colorsto the vertices of G in such a way that adjacent vertices are assigned different color 4-coloring 3-coloring It is easy to see from above examples that chromatic number of G is at least 3. That is X(G) ≤ 3, since G has a 3-coloring in first diagram. On the other hand, X(G) ≥ 3, since G contains three mutually adjacent vertices (forming a triangle)., which must be assigned different colors. Therefore, we have X(G) = 3.
• Edge Colorings Let G be a graph with no loops. A k-edge-coloring of G is an assignment of k colors to the edges of G in such a way that any two edges meeting at a common vertex are assigned different colors, 5-edge-coloring 4-edges-coloringFrom the above examples, it follows that X`(G) ≤ 4, since G has a 4-edge-coloring in figure a (above). On the other hand, X`(G) ≥ 4, since Gcontains 4 edges meeting at a common vertex i.e., a vertex of degree 4,which must be assigned different colors. Therefore, X`(G) = 4.