Graph and Tree Flashcards
Undirected graphs
Two vertices u and v in graph G are call neighbours in G if u and v are endpoints of an edge e of G. e connect u and v
Degree of vertex
The number of edges that incident with it
deg(v)
deg(v)=0 is called isolated
A vertex is pendant iff has a deg of one
Σdeg(v)=2e
Σdeg(v)=2e
An undirected graph has an even number of vertices of odd degree
An undirected graph has an even number of vertices of odd degree
IN and OUT degree
in-degree of a vertex v,
denoted by deg-(v)
Out-degree of a vertex v,
denoted by deg+(v)
Let G=(V,E) be a graph with directed edges
Σdeg-=Σdeg+=|E|
Graph Kn
Cycle
has at least 3 vertices
The wheels
The cube
Bipartite Graph
Given two non-empty set of vertices
and in graph G
V1 and V2
V1^V2=0/
V1vV2=G
Induced subgraph
Graph isomorphism
The simple G1=(V1,E1) and G2(V2,E2) if there exists one to one and onto function
A path vs a cycle
Path visits all the vertices exactly once but doesn’t have to start and ends at the vertex
Cycle is the same thing but starts and ends at the same vertex
Euler cycle
Must be a connected graph
Must start and ends at the same vertex
Visit each edge once
At least 2 vertices has even degree
Euler path
Must be a connected graph
Visit each edge once
Must have exactly 2 vertices with odd degree
Hamilton Path
A simple path in graph G passes through every vertex exactly once
Hamilton cycle
A simple cycle in graph G passes through every vertex exactly once