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

images/small-network.gif
A Small Example (cont.)

Using Contiguous Memory

images/small-network_contiguous.gif
A Small Example (cont.)

Using Linked Memory (With Known Size)

images/small-network_linked-node.gif
A Small Example (cont.)

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

images/small-network_linked-node-arc.gif
Linked Memory with Unknown Size