I am trying to calculate atomic transition, but when I was coding with MMA, I found that is it quite annoying to write down manually, so I want to ask that there is any way that I can write the code automatically.
So I have 10 places, and only allowed path is
{{1, 6}, {1, 7}, {2, 6}, {2, 7}, {2, 8}, {3, 7}, {3, 9}, {4, 8}, {4,9}, {4, 10}, {5, 9}, {5, 10}, {6, 1}, {7, 1}, {6, 2}, {7, 2}, {8, 2}, {7, 3}, {9, 3}, {8, 4}, {9,4}, {10, 4}, {9, 5}, {10, 5}
Then If I want to go from 1 to 2, then I need to go either 1->6 and 6->2 or 1->7 and 7->2.
so I want to make path function such that
path[1,2]
(*OutPut*)
path[6, 1] - path[6, 2]
(*Minus sign because of it is up path and down path*)
Any suggestion?,