comment out the part that will generate auxiliary files.
this part is originally used for practicing the method mentioned
in the book
Modify the form of edge Id genObj to mimic the java style