In this quiz, you will need to implement three operations, Add, Delete, Shortest to maintain a directed graph with positive and negative edges. The vertex representation is an integer. For example, vertex 0, vertex 1, and so on.
Below are the descriptions of these three operations.
Operations:
For example:

(i) Shortest 1 4: 6 1,2,4
(ii) Shortest 0 4: error
(iii) Shortest 0 3: error
(iiii) Shortest 1 0: error
Notice: You are allowed to use stl in this problem except for those directed functions which calculate shortest path and negative cycle.
In each testcase, the first input N will be the number of vertices in this graph. N will less than 1000 and the vertex key will be 0 to N-1. Several operations will follow after first input.
For command “Shortest”, you will need to print the output.