JMU
Data Structures for Graphs/Networks
An Introduction


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu


Background
Types of Structures
A Small Example

The Network

small-network
A Small Example (cont.)

Using Contiguous Memory

small-network_contiguous
A Small Example (cont.)

Using Linked Memory (With Known Size)

small-network_linked-node
A Small Example (cont.)

Using Linked Memory (With Known Size) - Flexible Node and Arc Attributes

small-network_linked-node-arc
Linked Memory with Unknown Size