Select the edge between points

First, thank you for your reply. I defined a ListAccum @path_list and a SetAccum @@edge_set in the query; Through my query logic, I stored some node IDs in the graph I defined in the ListAccum @path_list; , as shown in the figure below. Of course, these nodes are connected by edges. Now I want to store the information of each edge between these nodes in SetAccum @@edge_set, including various attributes of edges, starting nodes, ending nodes and so on. What should I do?
image