Fixes the Edge Input Format Issue with Louvain and adds unit tests.