SUNY Geneseo Department of Computer Science


Introduction to Graphs

Thursday, January 24

CSci 242, Spring 2013
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture

Questions?

Graphs are data structures like stacks or queues, but more so than stacks and queues, they are also overtly mathematical abstractions, and as such have uses in modeling lots of phenomena and relationships without necessarily intending software implementations of those models.

Diagram conventions: edges are lines, vertices are circles.

Graphs

Trees vs graphs

A tree and nearly identical directed graph

Unidrected, connected, acyclic graph

Graph example based on foods people like

People and foods

Hand out graph problem set

Next

Breadth first search

Read Section 22.2


Next Lecture