this code create a directed graph saving it into a file. Have a look to the info() function for more details.