fixed bug in dense graph maps