fixed bug in intersection graph generation