Unipartite graph construction bugfixes