refactored bipartitie and moved graph id in php file