next up previous contents
Next: Depth-First Search: Introduction Up: 3240 Previous: Heapsort: Introduction   Contents

Graphs: Introduction [167]




\begin{picture}(268,188)(26,626)
\thicklines\put(120,800){\circle{28}}
\put( 40,...
...box{0pt}[0pt][0pt]{\twlrm 10}}}
\put(265,720){\vector(-1, 0){ 50}}
\end{picture}



Graph G=(V,E) is set of vertices (nodes) V and edges (links) E.

Applications: networks or problems with connectivity.



Graphs: Terminology [168]

G is directed or undirected (both directions) based on edges.

Weights (cost, distance) may be associated with each edge.

Path is a sequence of vertices w_1, w_2,...,

Length is the number of edges in the path.

G may have cycles or be acyclic.

Directed acyclic graph: DAG

Undirected G is connected if path from every v to every other w.

Directed G is called strongly connected in this case.

If direction removed and G is connected, this is weakly connected.

Complete G has an edge between every pair of vertices.



Subsections

Ted Billard 2001-10-25