graphs 3: implementation

Homework 8 assigned

Wikipedia: adjacency list, matrix