Detect old style adjacency lists via regular expressions

These regular expressions should be able to detect the old
and the intermediate style adjacency lists.
Add unit tests for reading old style adjacency lists