I wish to pair up two elements. I know this can be done by dictionary but the limitation in dictionary is that two key values cant be same.
Example:
    1 2
    1 3
    1 4
    4 5
    2 3
    3 4
    3 5
    3 6
    6 7
i want something like this:
    {1:2,1:3,1:4,4:5,2:3,3:4,3:5,3:6,6:7}
But by using dictionary the output generated is :
    {1: 4, 2: 3, 3: 6, 4: 5, 6: 7}
How can i overcome this problem?