Find the edges between nodes

It is known that I have some node IDs stored in ListAccum@@path_lists. Now I want to extract all the edges between these nodes and store them in SetAccum @@edge_set. What should I do? What code can achieve this function.