Revert "adjacency matrix mostly implemented (some tests failing)"

This reverts commit d2fc6175836d7a0692fba8411f6f78fe43c28dc5.