minor fixes. graph density script now is ok