Hi everyone,
Suppose I have an undirected graph
G = Graph[{1 <-> 2, 2 <-> 3, 2 <-> 4, 3 <-> 4}, EdgeLabels -> {1 <-> 2 -> A, 2 <-> 3 -> B, 2 <-> 4 -> C,
3 <-> 4 -> D}]
I used FindPath[G, 1, 4, Infinity, All] and got the result as
{{1, 2, 4}, {1, 2, 3, 4}}
Although this result is true, I want this result to display possible paths in terms of edges, and not vertices. For above example, I want the result to be
{{A, C}, {A, B, D}}
Is there any way to do this? Actually, I have a large graph with 107 possible paths from source node to destination node, and I want to identify those paths with respect to edges. Please help. Thank you.
