Bug 232

Summary: getPath(node) return null when the is the source node
Product: Group 1 Reporter: ZHENG Wanying <wanyzheng3-c>
Component: DijkstraAssignee: sherlockqiu
Status: RESOLVED FIXED    
Severity: trivial CC: lpzjerry
Priority: Lowest    
Version: v0.2-beta   
Hardware: PC   
OS: Mac OS   
Attachments: The source code

Description ZHENG Wanying 2017-11-29 16:52:14 HKT
Created attachment 10 [details]
The source code

getPath(source) should return [source]
Comment 1 sherlockqiu 2017-11-29 17:44:58 HKT
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.