Identify neighbours of nodes inside group

I have node shape of square / rectangle. all the nodes are exist in one group.

Doors are nodes which is exist in profile group.

  1. is there any feature which can identify a neighbours of node(Door) ?.
  2. how to identify a top / left / bottom / right nodes which is touched with group border?

this things i need because i wanna generate side / top view of profile.


You can call Diagram.findPartsIn to find nearby Nodes. You will need to check them individually to decide whether they are “neighbors” or not.

Thanks @walter. we have changed our logic and got the solution.