Week 1: - e - U and V Are - U and e Are - U and V Are
Week 1: - e - U and V Are - U and e Are - U and V Are
• A graph G = (V, E) consists of the set of vertices V and the set of edges E.
– e connects u and v;
– u and v are end points of e;
– u and e are incident (v and e are incident);
– u and v are adjacent or neighbors.
• The degree deg(v) of a vertex v is the number of edges incident to it. A vertex of degree 0 is
called isolated.
• In a directed graph, the indegree (outdegree) of a vertex v is the number of edges ending at v
(leaving v).
• The degree of a graph is the maximum degree of its vertex. A k-regular graph is a graph where
each vertex has degree k.
• The complement of a graph G = (V, E) is a graph G = (V, E) s.t. (u, v) ∈ E if and only if (u, v) ̸∈ E.
• A walk in a graph is a sequence of edges, where each edge (except for the 1st one) starts with a
vertex where the previous edge ended. The length of a walk is the number of edges in it.
• A cycle in a graph is a path whose 1st vertex is the same as the last one.
• A simple cycle is a cycle where all vertices except for the 1st one are distinct. (And there 1st
vertex is taken twice.)
• A graph is called connected if there is a path between every pair of its vertices.
• The cycle graph Cn consists of n vertices v1 , . . . , vn and n edges {v1 , v2 }, . . . , {vn−1 , vn }, {vn , v1 }.
• The complete graph (clique) Kn contains n vertices v1 , . . . , vn and all n(n − 1)/2 edges between
them.
• A graph G is bipartite if its vertices can be partitioned into two disjoint sets L and R s.t. every
edge of G connects a vertex in L with a vertex in R.