CSCI 311
Graph Definitions
- graph
- a graph G is a collection of two sets:V, a set of nodes called vertices
and G, a set of branches (edges) that connect the vertices
- directed
graph or digraph - <v1, v2> - graph in which each edge
is associated with an ordered pair of vertices
- undirected
graph or graph - graph in which each edge is associated with
an unordered pair of vertices
- adjacent
- a vertex v1 in a graph G is adjacent to v2 if there is an edge between
v1 to v2
- adjacent
- a vertex v1 in a digraph G is adjacent to v2 if there is a directed edge
from vertex v1 to vertex v2
- path
- sequence of vertices v1, v2, v3,…vn where there is an edge from vi to
vi+1
- cycle
path - path from vertex to itself
- simple
path - path in which all vertices except possibly first and last
are distinct
- cycle
- simple path in which first and last vertices are the same
- acyclic
graph - graph with no cycles
- tree
- connected, acyclic graph with a specially designated node called the
root
- connected
graph - there is a path between any two vertices (undirected)
- strongly
connected - there is a path between any two vertices (digraph)
- weakly
connected - there is a path from vertex I to vertex J or from
vertex J to vertex I (digraph)
- outdegree
of a node - number of edges extending from the node (digraph)
- indegree
of a node - number of edges entering a node (digraph)
- degree
of a node - number of edges incident to a node (undirected)
- complete
graph (undirected) - a graph is complete if each pair of distinct
vertices has an edge between them (graph with n vertices and exactly
n(n-1)/2 edges)
- complete
directed graph - a directed graph with exactly n(n-1) edges
- weighted
graph - graph in which the edges represent numeric values
- directed
path - sequence of directed edges between two vertices
- multigraph
- figure which has multiple occurrences of the same edge (2 or more
edges between2 vertices)
- network
- graph in which each edge has an associated positive numerical weight
- A graph
with n vertices and exactly n(n-1)/2 edges is called complete
- depth
first search (DFS) - a graph traversal strategy in which a path from a
vertex v proceeds as deeply into the graph as possible before backing up
- breadth-first
search (BFS) a graph traversal strategy in which a path from a vertex
v visits every vertex adjacent to v that it can before visiting any other
vertex
- topological
order - linear ordering of the vertices in a digraph in which vertex x
precedes vertex y if there is a directed edge from x to y in the graph
- topological
sort - technique for arranging the vertices into topological order
- spanning
tree - a spanning tree of a connected undirected graph G is a subgraph
of G that contains all of G's vertices and enough of its edges to form a
tree
- DFS
spanning tree - spanning tree created by executing a depth-first
search of a graph's vertices
- BFS
spanning tree - spanning tree created by executing a breadth-first
search of a graph's vertices
- minimum
spanning tree - spanning tree of a weighted, connected, undirected
graph which has minimal edge-weight sum
- shortest
path - the shortest path between two given vertices in a weighted
graph is the path that has the smallest sum of its edge weights
- Euler
circuit - a path in an undirected graph that begins at a vertex v,
passes through every edge in the graph exactly once, and terminates at v
- Hamilton
circuit - a path that begins at a vertex v, passes through every
vertex in the graph exactly once, and terminates at v.
- Traveling
salesman problem
- Three
utilities problem
- Four-color
problem