Graph generator

Working graph generator code
Fixes

Cleaning, file generation, better node number approximation