Improved BipartiteGraph code, BipartiteGraph and Graph unit tests