Created attachment 10 [details] The source code getPath(source) should return [source]
Hi Wanying, Thanks for your feedback. According to the description of Dijkstra's algorithm source node is not reachable to itself so in this case, it would be ok to return null rather than source. However, you remind me that there should be a handler in Company component so that if there is only one branch it would also be reachable.