Numerous fixes - things will actually compile now
Add first stab at a couple tests for adjacency list.

Also fix deadlock in AddVertex.