A simple, no-frills graph implementation.