what if we duplicate target node then I need to also find other nodes which are distance k from a particular node ?
Duplication of target node
Duplication of target nodes means?
You can have only 1 target node and then find distance from that node only.
I am asking for the other case scenerio then should be the approach?