How to modify input and output in GSQL

hello ,everyone
I want to find a shortest path from a point in vertex set A to a point in vertex set B in tigergraph through the all-pairs shortest paths algorithm. The weight value of this path is the minimum value of the shortest path from a point in vertex set A to each point in vertex set B…

  1. Now I can only input one node as my source. How can I make my input vertices all the vertices in vertex set A?
  2. Now my output is the shortest path from the source point to other nodes and its weight value. How can I make the program output only one path with the minimum weight in vertex set B?