Step 1: Input the file name that the user want to use as the result file name.

Step 2: Create a file with the name.

Step 3: Write “dl n=” and the size of the list after it.

Step 4: Write “format = edgelist1\nlabels embedded:\ndata:”.

Step 5: Write each edge of the required graph into the new “.dl” file with their possibilities.

Step 6: Save and close the file.