Selecting Connected Slab/Slab Edges

I’m pretty new to both Revit and Dynamo. I am currently trying to export data to excel that contains information for a floor slab and its connected slab-edge in the same row. While I know how to get the data for each component individually, I have not found a way to identify which floor slab is connected to which slab edge. It would be perfect if there was a way to find all slab-edges connected to each slab and store them together in a list. Any thoughts? And would it also be possible for beams? Python solutions also welcome.


What about