edge-induced subgraph
let
be an undirected graph, and let
.
an edge-induced subgraph is a graph that contains the edges
and all the vertices at the endpoints of these edges.
an edge-induced subgraph is a graph that contains the edges
let
be a connected undirected graph, assume that bfs has been applied to
starting at the vertex
. let
be the edge-induced subgraph with the edges
the resulting tree
is a distance tree relative to
in
.
with the help of this bfs lemma:
each vertex in the graph is found once, so
has
edges and
vertices, for each vertex
, in
there would be a path from
to
, so
is a tree by definition. for all
, the only path from
to
in
is a minimal path in
, i.e.
.
each vertex in the graph is found once, so