1.7 Graphs

Basic Definitions


Definition


A graph G=(V,E) G equals open paren V comma E close paren consists of a set of vertices V V and a set of edges E E. Each edge connects either two vertices (undirected) or is an ordered pair (directed).

Types of Graphs


Undirected Graph: E⊆{{u,v}|u,v∈V} E subset of or equal to open brace the set u comma v divides u comma v is a member of V close brace.

Directed Graph Digraph: E⊆V×V E subset of or equal to V times V.

Simple Graph: No loops or multiple edges.

Multigraph: Allows multiple edges.

Weighted Graph: Each edge e e has a weight w⁡(e)∈ℝ w of e is a member of the real numbers.

Vertex Degree


Degree undirected:
deg⁡(v)=|{{v,u}∈E}| degree v equals the absolute value of open brace the set v comma u is a member of E close brace.

In-degree/Out-degree directed:

deg-⁢(v)=|{u,v}∈E|;deg+⁢(v)=|{v,u}∈E| degree raised to the minus power times v equals the absolute value of the set u comma v is a member of E semicolon degree raised to the plus power times v equals the absolute value of the set v comma u is a member of E

Paths and Cycles


Path: Sequence of vertices v0,v1,⋯,vk v sub 0 comma v sub 1 comma dot dot dot comma v sub k with (vi-1,vi)∈E open paren v sub i minus 1 comma v sub i close paren is a member of E.

Simple Path: No repeated vertices.

Cycle: Path with v0=vk v sub 0 equals v sub k and edges distinct.

Length: Number of edges in a path or cycle.

Connectivity


Undirected


Connected Graph: A path exists between every pair of vertices. Connected Component: Maximal connected subgraph.

Directed


Strongly Connected: Path in both directions between every pair.

Weakly Connected: Underlying undirected graph is connected.

Special Graphs


Complete Graph Kn K sub n: Every pair of distinct vertices is adjacent.

Complete Bipartite Km,n K sub m comma n: Bipartition (V1,V2) open paren V sub 1 comma V sub 2 close paren with all cross edges.

Cycle Graph Cn C sub n: Single cycle of length n n.

Path Graph Pn P sub n: Simple path with n n vertices.

Tree: Connected acyclic undirected graph.

Forest: Disjoint union of trees.

Planar Graph: Can be drawn without edge crossings.

Trees


Properties


  • A connected graph with n n vertices and n-1 n minus 1 edges.

  • Unique simple path between any two vertices.

  • Equivalently, acyclic and |E|=|V|-1 the absolute value of E equals the absolute value of V minus 1.

v 1.1 1.1 Feb 27 27