Differences
This shows you the differences between two versions of the page.
|
projs:clans:docs:sps:handler.calc_source_target [2014/01/21 01:28] honeyzhaoqian created |
projs:clans:docs:sps:handler.calc_source_target [2014/01/21 15:32] (current) yoyoliliu |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Handler.calC(source,target) ====== | ====== Handler.calC(source,target) ====== | ||
| - | ====== Description ====== | + | - Return the shortest path from source company to target company based on a weighted people social network. |
| - | ====== Parameter ====== | + | - Parameters |
| - | ====== Detail Information ====== | + | - - source: company id |
| + | - - - Starting node | ||
| + | - - target: company id | ||
| + | - - - Ending node | ||
| + | - Return: path: list | ||
| + | - - List of shortest path. | ||
| + | - Raises: NoPath: if no path exists between source company to target company. | ||
| + | - Notes: | ||
| + | - - When calculate the shortest path between two companies, we use the chairmen or senior manager to represent the company in social network. | ||