Adds code for generating random FI graphs.