Updated the adjacency and incidence matrix storage, and adjusted code to match new format.

They now use a top-level dictionary for each storage type (coo, csr & lil), and a sub-level dict for the property stored ('connections', 'invaded', etc).