Notions and Notation Flashcards
graph. :
a finite, nonempty set V (vertex set) and a set E (edge set) whose elements e in E are pairs (a,b) with a,b in V
digraph:
a directed graph, where edges go only 1 way - undirected graphs are well. undirected, they go both
multigraph:
a graph with parallel edges
2 vertices connected by an edge are:
adjacent, neighbours, the edge is incident on the 2 vertices
start and end vertex of a directed edge:
start = tail (vertex), predecessor
end = tip (vertex), successor
complete graphs:
Kn, all vertices are connected to each other
|E|=(n(n-1))/2
path graphs:
Pn, a line, string of vertices connected by 1 or 2 edges depending on if its an end one or not
|E|=|V|-1
cycle graphs:
Cn, aka circuit graphs, 1 cycle, a ring of however many vertices, what if you connected the end vertices of a path graph
|E|=|V|
complete bipartite graphs:
Km,n - vertex set is the union of 2 sets, and the edge set is each vertex of one set connecting to every vertex of the other
|E|=|V1|*|V2|
bipartite graph:
each vertex from the first set can be connected to only some of the vertices of the second, but the 2 vertex sets are still disjoint and each edge connects one vertex from one set to one in the other
cube graphs:
Id - the d-dimensional cube graph, each vertex is a string of d 0s and 1s, and all possible vertex labels occur. edges connect the vertices that differ by exactly one digit
|V|=2^d, |E|=d2^(d-1)
degree:
the degree of a vertex (deg(v)) is the number of edges connected to that vertex, or the number of times it appears in the edge set - digraphs have deg(in)(v) and deg(out)(v)
handshaking lemma:
if G(V,E) is an undirected graph, Σdeg(v)=2|E|
corollary of the handshaking lemma:
in an undirected graph, there must be an even number of vertices with odd degree
edge list:
take a vertex set {1,2,3}. the edge set is smth like E={(1,2),(2,3),(1,3)} - if every vertex is contained within the edge list, we can just use the edge list
adjacency matrix:
the adjacancy matrix A has elements Aij=1 if an edge between the vertices i and j exist, and 0 otherwise - row is the first/tail vertex, column is the second/tip in a digraph - if it’s a multigraph, take the number of edges
degree and adjecancy matrix:
you can calculate the degree of a vertex by summing the row/column, and for deg(out) you take the row and deg(in) take the column
adjacency list:
a list of all the vertices a given vertex v is connected to, Av, in a digraph you have the predecessor and successor lists for the vertices that precede or succeed v