How to get the surfaces which share the same edge?

For example, I clicked an edge in a solid body, how can I get the surfaces which share this edge? And how can I compare these surfaces and get the relationship of them?

SolidworksApi macros