The shortest path

Query the shortest path of a node and a group of nodes, and display the shortest path and the corresponding node。
for example,Node A and a group of nodes (1, 2, 3) calculate the shortest path between A and node 1,A and node 2, A and node 3. If the shortest path between A and node 2 is the shortest, the corresponding shortest path is displayed.Thank you very much!