Get all the junctions of walls/floors elements

Hello,

I would like to get all the intersections of elements (walls, floors) which make a room boundaries.
For each of those, I need to get its length and the two ajacent elements (walls and/or floors) which make this junction.
I tried using Room.Boundaries but when I get all the boundaries elements, how can I find each junction made by all these elements ?
For exemple, for a given wall, you could have 3 or 4 different floors elements that make a junction with this wall.

Many thanks in advance for your help!