how to detect edges shared by more than two faces ?

¿how to detect edges shared by more than two faces ? :spin:

http://www.lluc3d.com/wp-content/uploads/2012/04/edge_detection.jpg

thankssssssssss!