Reverted to HK algorithm. simplified code and compressed graph
Wikipedia HK algorithm
Creates the correct graph
Merge conflicts resolved