Docsity

GRAPHS THEORY IN DISCRETE MATHS, Slides of Discrete Mathematics

Partial preview of the text

Download GRAPHS THEORY IN DISCRETE MATHS and more Slides Discrete Mathematics in PDF only on Docsity!

Graphs Theory

Ikram Syed Discrete Mathematics 1 /

Overvie

w

Graphs and Graph Models

Graph Terminology and Special Types of

Graphs Representations of Graphs, and

Graph Isomorphism

Connectivity

Euler and Hamiltonian Paths

Brief look at other topics like graph coloring

Kousha Etessami (U. of Edinburgh, Discrete Mathematics 2 /

Formal Defintion of Directed

Graphs

A directed graph ( digraph ), G = ( V, E ), consists of a non-empty set, V , of vertices (or nodes ), and a set E ⊆ V × V of directed edges (or arcs ). Each directed edge ( u, v ) ∈ E has a start ( tail ) vertex u , and a end ( head ) vertex v. Note: a directed graph G = ( V, E ) is simply a set V together with a binary relation E on V. Kousha Etessami (U. of Edinburgh, Discrete Mathematics

Definition of (Undirected)

Graphs

For a set V , let [ V ] k denote the set of k -element subsets of V. (Equivalently, [ V ] k is the set of all k - combinationsof V .) A (simple,undirected) graph , G = ( V, E ), consists of a non-empty set V of vertices (or nodes ), and a set E ⊆ [ V ] 2 of (undirected) edges. Every edge {u, v} ∈ E has two distinct vertices u ƒ = v as endpoints , and such vertices u and v are then said to be adjacent in the graph G. Note : the above definitions allow for infinite graphs, where |V | = ∞. In this course we will focus on finite graphs. Kousha Etessami (U. of Edinburgh, Discrete Mathematics

A directed graph (digraph) (with

loops):

SF NY ED LA Onlydirectededges;at most one directed edgefromany nodenode;to andanyloops are allowed. Kousha Etessami (U. of Edinburgh, Discrete Mathematics 7 /

A simple directed

graph :

SF NY ED LA Onlydirectededges;at most one directed edgefrom any nodeother node;to any^ andno^ loops allowed. Kousha Etessami (U. of Edinburgh, Discrete Mathematics 8 /

Anundirected

pseudograph :

LA SF NY ED Onlyundirectededges; may containmultiple edgesbetween a pair of nodes; andmay contain loops(even multiple loops on the same node). Kousha Etessami (U. of Edinburgh, Discrete Mathematics 10 /

Adirected

multigraph :

SF NY ED LA Onlydirectededges; may containmultiple edgesfrom one node to another; butno loops allowed. Warning: this differs slightly from the Rosen book terminology. The book’s notion of “directed multigraph” Kousha would Etessami allow (U. of loo Edinburgh, ps. Discrete Mathematics 9 /

Graph Terminology Zoo

(ridiculous)

Type Edges Multi-Edges? Loops?

  1. (simple undirected) graph Undirected No No
  2. (undirected) multigraph Undirected Yes No
  3. (undirected) pseudograph Undirected Yes Yes
  4. directed graph Directed No Yes
  5. simple directed graph Directed No No
  6. directed multigraph Directed Yes No 1
  7. directed pseudograph Directed Yes Yes
  8. mixed graph Both Yes Yes

We will focus on the two most standard

types: (1.)graphs (simple undirected),

and (4.)directed graphs(also known

asdigraphs).

1 differs from Kousha^ book. Etessami (U. of Edinburgh, Discrete Mathematics

Degree and neighborhood of a vertex Definition 3. The degree of a vertex v in a undirected graph is the number of edges incident with it. The degree of the vertex v is denoted by deg( v ). Definition 3. The neighborhood (neighbor set) of a vertex v in a undirected graph, denoted N(v) is the set of vertices adjacent to v.

Graph Models: Computer Networks

  • (^) network where we care about the number of links: we use a multigraph.
  • (^) diagnostic self-links at data centers: we use a pseudograph.
  • (^) network with multiple one-way links, we use a directed (multi)graph.

Applications of Graphs

 (^) “ E V E RY T H I N G IS A GRAPH” (labeled, directed, etc., ...)  (^) graph theory can be used in modelling o:f

 S o c i a l networks

 Communications networks

 I n f o rm a t i o n networks

 S o f t w a r e design

 Transportation networks

 B i o l o g i c a l networks

Graph Models: Social Networks Example : A friendship graph: two people are connected if they are Facebook friends. Example : An influence graph

Information Networks  (^) I n a web graph , web pages are represented by vertices and links are represented by directed edges.  (^) I n a citation network :

 Research papers are represented by vertices.

 W h e n paper A cites paper B, there is an

edge from the vertex representing paper

A to the vertex representing paper B.