I think you are searching for vertex adjacency.
orient_geometry_from_point_to_edge_VertexAdjacency.gh (24.9 KB)
Or edge face adjacency:
orient_geometry_from_point_to_edge_EdgeFaceAdjacency.gh (47.6 KB)
First concept give info about vertices that are around nth vertex and other concept gives info about edge and its neighbour faces:
I used NGon for getting this info about mesh topology: