Basic Definitions

  • An undirected graph G=(V,E) is defined by a set of vertices, V, and a set of edges, E, where each edge in E is an unordered pair of vertices drawn from V.

  • A weighted undirected graph G=(V,E,W) is an undirected graph (V,E) with an associated weight function, W:ER+, that assigns a non-negative real weight to each edge in E.

  • A labeled weighted undirected graph G=(V,E,W,L) is a weighted undirected graph (V,E,W) with an associated labeling function, L, that assigns a label to each vertex in V. In GraSPI, we label each vertex by a color.

  • A path between a source vertex, sV, and a target vertex, tV is a sequence p=[v0,v1,vivk] of vertices such that vo=s, vk=t and for each i from 0 to i1, vertices vi and vi+1 are adjacent in G. The length of path p is k1i=0w(e(vi,vi+1)).

  • A shortest path between a source vertex sV and a target vertex tV is a path between s and t that is of the shortest length among all paths between s and t in G. The distance between vertices s and t in G is the length of a shortest path between s and t in G. If no such path exists, the distance is defined as infinity. Note that the shortest path between a pair of vertices need not be unique, but the distance between them is unique.

  • A subgraph of G is a graph G=(V,E) such that VV and EE. A vertex-induced subgraph on vertex set VV is the maximal subgraph with the vertex set V.

  • A graph G is connected if there is a path between any pair of vertices in G. A connected component C in G is a maximal connected subgraph of G.