Mria Markoov Graph definition Degree, in, out degree, oriented - - PowerPoint PPT Presentation
Mria Markoov Graph definition Degree, in, out degree, oriented - - PowerPoint PPT Presentation
Mria Markoov Graph definition Degree, in, out degree, oriented graph. Complete, regular, bipartite graph. Graph representation, connectivity, adjacency. Isomorphism of graphs. Paths, cycles, trials. Random
Graph – definition Degree, in, out degree, oriented graph. Complete, regular, bipartite graph…. Graph representation, connectivity, adjacency. Isomorphism of graphs. Paths, cycles, trials. Random graph. Graph evolution.
Definition: A graph G consists of vertex set V(G) and edge set E(G) and edges are defined by vertices pairs. loop multiple edge Oriented graph: if edges have orientation. Sim imple g graph: graph without loops and multiple edges, no edge orientation. supgraph
Vertex d degree w x y z a b c d e Degree of a vertex x. k(x) is a number of edges incident with the vertex x. In degree of vertex x, : Number of edges leading to the vertex x. Out degree of vertex x, : Number of edges leading out of vertex x. w x y z a b c d e
x kin
x kout
x k x k x k
- ut
in
Oriented graph
Example. x k(x)= 5
x k x k x k
- ut
in
? x k ? x k
- ut
in
Simple graphs: without oriented edges, no loops, no multiple edges: in what follows we shall deal with such graphs, if not given
- therwise.
Oriented graphs: G(V,E), where V is a set of vertices, E is a set of
- rdered pairs
e=(u,v), u, v are endpoints of edge and their order is fixed. Lemma: Unoriented graph has even number of vertices with odd degree.
Complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. Complete graph of N vertices is denoted as
N
K
4
K
7
K
12
K
What is the degree of each node in ?
N
K
The number of edges in the complete graph:
2 1 2
N N N E
Regular graph is a graph where each vertex has the same number of neighbors, that means each vertex has the same degree. What about the complete graph? Is the complete graph also a regular graph?
Complementary graphs Comlementary graphs mapped on each other create comple lete g graph, , in which each vertex is connected to each other vertex. What is the complementary graph of ?
12
K
Are there a graphs, which have the same complementary graphs?
Bipartite g graph Graphs, in which V(G) (vertex set) is the union of the two disjoint independent sets (no edges between nodes in the set). people jobs men women authors papers What type of the graph is also a bipartite graph? Find an example. Find another examples at home.
Tree g graph: Undirected graph in which two vertices are connected exactly by one simple path. Is the tree on fig a bipartite graph? Every tree is a bipartite graph.
Spannin ing tree: Spanning tree of the connected undirected graph G is a tree composed of all vertices and some edges of the graph G. A spanning tree of a connected graph G can also be defined as a maximal set of edges of G that contains no cycle, or as a minimal set of edges that connect all vertices.
Graph representation Loopless graph: Graph without loops, multiple edges are allowed w x y z a b c d e
1 1 2 1 2 1 1 1 z y x w
W x z y A(G) adjacency matrix-
number of edges between defined endpoints
1 1 1 1 1 1 1 1 1 1 z y x w e d c b a
M(G) incidence matrix-
One, if vertex is the endpoint of an edge, zero if not
w x y z a b c d e
1 1 2 1 2 1 1 1 z y x w
W x z y A(G)= Every adjacency matrix is symetric (no oriented graphs). The degree of vertex x is a sum of entries of row x in both A(G) and M(G).
1 1 1 1 1 1 1 1 1 1 z y x w e d c b a
M(G)=
3 1 1 1 2 1
x k
Isomorphic ic graphs Two graphs G and H are isomorphic, if we are able to map one to the another (e.g. to find a bijection f: V(G) V(H), and if uv is from E(G) then f(u)f(v) is from E(H)) G H Adjacency matrix of G is the same as of H if we reorder the vertices
Self complementary graphs Definition: A graph is self complementary if it is isomorphic to its complement. 1 2 3 4 5 b c d e a
Isomorfism has 1.reflexive, 2.symetric and 3. transitive property:
- 1. Each graph is isomorphic to itself.
- 2. If is an isomorphism from G to H, then is an
isomorphism from H to G.
- 3. Suppose that , and are
isomorphisms then composition is isomorphism from F to G. Isomorphic graphs have isomorphic complements. Sometimes it is easier to test the complements to decide, whether two graphs are isomorfic or not.
H V G V f
:
1
f
G V F V f :
H V G V g : g f
Are they isomorphic? 1 2 3 4 5 6 a b c d e f 1 2 3 4 5 6 a b c d e f 1 2 3 4 5 6 a b c d e f Complementary graphs
To prove, that graphs are NOT isomorphic is enough to find, that in some structural properties ( e.g. number of edges, supgraphs, complements etc.) they differ.
Isomorphic ic classes
- path with n vertices
- cycle with n vertices
- complete graph with n vertices
- complete bipartite graph, r,s are indexes of two
sets of vertices
s r n n n
K K C P
,
5
P5 C5 K
3 , 2
K
Wh What i is the number o
- f simple graphs which can b
be created on a s set o
- f N vertices?
2
2
N
m
From a set of four vertices we can create 64 different simple graphs, belonging to 11 isomorphism classes. Here are the representatives of all classes
Connected and disconnected g graphs Definition: A graph G is connected if it has u,v – path whenever u, v are from V(G). Othervise G is dis isconnected. x y z w e1 e2 e3 e4 e5 e6 e7
Definition: A walk lk is a list of vertices and edges such that for the edge has endpoints and . Edges and vertices can be repeated. A u,v-walk or u,v – trail has first vertex u and last vertex v. A trail is a walk with no repeated edge. A u,v- path is a path whose vertices of degree one are u,v (endpoints). Other vertices are internal. Edges and vertices are not repeated. A walk and trial is closed if its endpoints are the same.
k i
1
k k v
e v e v , ,..., , ,
1 1
i
e
i i
v v ,
1
x y z w e1 e2 e3 e4 e5 e6 e7 Konigsberg bridges Walk lk of lenght 4: x.e2,w,e5,y,e6,x,e2,w Closed walk of lenght 5: x.e2,w,e5,y,e6,x,e1,w,e2,x Trail of length 4 x.e2,w,e5,y,e6,x,e1,w Cycle of lenght 3: Subgraph consisting of edges e1,e6,e5 and vertices w,x,y. Deleting
- ne of its edges we get a
path of length 2. Euler’s ’s q questio ion walk trail cycle
Eulerian t trial: : Trial which visits every edge at most once. Euler’s lemma: Connected graph has closed eulerian trial if and
- nly if all of its vertices have even degree.
x y z w e 1 e 2 e 3 e 4 e 5 e 6 e 7 x y z w e1 e 3 e 6 e 7 Why?
Connectivity and adjacency G has w,z- path
G E xw
w and z are connected w is connected to z x and w are adjacent x is joined to w x is adjacent to w w x y z a b c d e
Component o
- f graph
Definitions: Maximal c connected subgraph of graph G is a subgraph, which is connected and is not contained in any other connected subgraph of G. The components of graph G are its maximal connected subgraphs. 4 components of graph G
Proposition: Every graph with N nodes and m edges has at least N-m components. Proof: N isolated vertices create a graph with N components. Each added edge links vertices in the same component, or in different components merging them in one. So adding an edge decreases the number of components by 0 or one. If we add m edges, the number
- f components is at least N-m.
Definition: Cut e edge or cut vertex is an edge or vertex whose deletion increases the number of components.
Cut vertex increases the number of subgraphs by many Cut edge increases the number of subgraphs always by one
Vertex d degrees De Degree o
- f vertices are f
fundamental parameters of g graph.
G G v kG
Degree of a vertex v of graph G Maximum degree in graph G Minimum degree in graph G Definitions: Graph G is regular if all degrees are equal. Graph G is k-regular if the common degree is k. N(v) – neigborhood of vertex v, set of vertices adjacent to v N(G)- order of G, number of vertices in G e(G)- size of G, number of edges in G
First teorem of g graph theory If G is a graph, then : Proof: each edge adds to the degree of two vertices. What can be concluded from the theorem?
- 1. Average vertex degree is:
- 2. Every graph has an even number of vertices of odd degree. No graph
- f odd order k is regular with the odd degree.
- 3. A k –regular graph of with N vertices has Nk/2 edges.
G e v k
G V v
2
G G N G e G , G N G e
2
2
Proposition: If k is greather then zero, then a k – regular bipartite graph has the same number of vertices in each partite set. Proof : Let G be an X,Y bigraph . Counting the edges according to their endpoints in X yealds .Counting them by their endpoints in Y yealds . Thus And therefore .
X k G e
Y k G e
Y k X k
, k Y X
X Y
Extremal problems Extremal problem: asks for maximal or minimal value of a function over a class of objects.
- 1. Maximal number of edges in a simple graph (having no loops and
multiple edges )is .
- 2. The minimum number of edges in a connected graph with N vertices is
N-1.
2 1 2 2 2
N N ! ! N ! N N
- 3. If G is a simple N vertex graph with , then G is
connected.
2 1
N G
Model A: A: Let us have a set of N vertices and the probability p(N)=p, that each pair of vertices is connected by an edge. Each graph with m edges has a probability of occurrence The random variable denotes a realization of such graph.
m N m
p p
2
1
p
G
m=4
Model B B: : Let us have N vertices and m=m(N) edges and each such graph occurs with probability , where n is a possible number of edges if each vertex is connected to each and . Random variable denotes a graph generated in this way. Both models are the same for large number of vertices and probability
1
m n
2 N n
m
G
2 / / N m n m p
Random graph theory studies the properties of the probability space associated with graphs with N nodes, . Eordos, Renyi: Almost every graph has a property Q if the probability
- f having Q approaches one, as .
Wh What is Q ? E Examples:
- is a typical graph connected
- does typical graph contain triangles, trees, etc.
- etc.
N
N
Evolutio ion o
- f graph:
One starts with isolated points and edges are succesively added. This corresponds to groving probability p in the A model. Go Goal: : At what probabil ility p p particullar property Q in a a graph a aris ises? Many important properties appear suddenly, at certain critical probability .
N pc
Q P
p N N ,
lim
0, if 1, if
N p N p
c
N p N p
c
Probability to have graph with quality Q, number of nodes N and edge probability between nodes p
It can be shown, that the number of subgraphs F contained in graph G having number of nodes N and probability p of two vertices being connected is:
a p N n E
m F
- number of nodes in
subgraph a -number of isomorfic subgraphs m -number of edges
That is: The number of subgraph is finite if
m
cN p
Evolutionary stage of graphs: It is a range of values for m(n) or p(n) in which a structural description of a typical graph does not change too much.
- 1. If there is a huge amount of vertices compared to the number of
edges, then adding an edge to a randomly chosen pair makes an isolated edge.
- 2. Then, for certain threshold probabilities (or threshold number of
edges) subtrees with vertices appear. Graph has no cycles.
1 /
cN N pc
Number of nodes in tree Number of edges in tree
- 3. For probability with cycles start to
appear.
- 4. The critical probability of having a complete subgraph of order is
N c N pc /
1 c
1 / 2
cN N pc
cycle
Evolution of graphs intuitively
Conclusion: What to remember: Types of graphs (unoriented, oriented, simple, complete, bipartite.... Important properties (degree, connectivity ... ) What you need to understand: Lemmas at least on the intuitive level