DX11 How to get positions from a shader

I have moved on from patch 05 from @dottore’s workshop at NODE13 to create my own little unsiverse where some attractors create galaxies of stars.

my question now is how I can get the positions of the particles to make connections between them, ideally so I only make connections between some of them.

I have been thinking about creating a second system with the same parameters for the attractors and particles, but just having a lot fewer of them to be able to extract only a few positions to make connections between.