Adds a bidirectional graph implementation.  Also adds comments to other
classes.