script for randomly generating sdf3 graph