Chapter 3 Flashcards
What is the difference between a directed and undirected graph?
The order of the nodes being connected matters for directed. i.e an edge from u to v exists but not v to u
What is the definition of a path for an undirected graph?
we define a path in an undirected graph G=(V,E) to be a sequence P of nodes v1,v2,…,vk−1,vk with the property that each consecutive pair vi , vi+1 is joined by an edge in G.
What is a simple path?
A path is called simple if all its vertices are distinct from oneanother.
What is a cycle?
A path with more than 2 nodes where all nodes are distinct except for the first and last node which are the same. i.e it cycles back.
What does it mean for an undirected graph to be connected?
We say that an undirected graph is connected if, for every pair of nodes u and v, there is a path from u to v.
What does it mean for a directed graph to be strongly connected?
We say that a directed graph is strongly connected if, for every two nodes u and v, there is a path from u to v and a path from v to u.
define distance between nodes u and v
minimum number of edges between u and v
when is an undirected graph considered a tree?
Trees We say that an undirected graph is a tree if it is connected and does not contain a cycle.