SceneViewer have this functionality, but it works only in viewport.
If you use this
selectGeometry('Select points/edges and press enter', use_existing_selection=False, geometry_types
hou.geometryType.Edges,)
and instead of selecting edges like code suggests switch to points and select one or couple point(s), it will return all edges that contains selected point(s) and with it you get also neighbours of this/those point(s).
If the same function could be used without using viewport, we are in home.