Differences
This shows you the differences between two versions of the page.
projs:clans:docs:functions [2014/01/27 10:42] yoyoliliu |
projs:clans:docs:functions [2014/02/12 17:59] (current) jfeng0 |
||
---|---|---|---|
Line 3: | Line 3: | ||
^ API ^ Description ^ | ^ API ^ Description ^ | ||
| [[projs:clans:docs:getrelatedpeople|getRelatedPeople(people_name,[reuqired_page])]] | Return a list of people whose name is related with people_name | | | [[projs:clans:docs:getrelatedpeople|getRelatedPeople(people_name,[reuqired_page])]] | Return a list of people whose name is related with people_name | | ||
- | | getRelatedCompany(company_name) | Return a list of companies whose name is related with company_name | | + | | [[projs:clans:docs:getrelatedcompany|getRelatedCompany(company_name)]] | Return a list of companies whose name is related with company_name | |
| getRelatedPeople(people_name1, people_name2, [including_people_list, excluding_people_list]) | Return 2 list of people whose name is related with people_name1 and people_name2 | | | getRelatedPeople(people_name1, people_name2, [including_people_list, excluding_people_list]) | Return 2 list of people whose name is related with people_name1 and people_name2 | | ||
| getRelatedCompany(company_name1, company_name2, [including_company_list, excluding_company_list]) | Return 2 list of companies whose name is related with company_name1 and company_name2 | | | getRelatedCompany(company_name1, company_name2, [including_company_list, excluding_company_list]) | Return 2 list of companies whose name is related with company_name1 and company_name2 | | ||
Line 21: | Line 21: | ||
| getGraphStatistics(social_network_type) | return radius, spectral_radius, average_clustering_coefficient, average_shortest_path_length, center, density, periphery, is_strongly_connected, number_of_strongly_connected_components, strongly_connected_components, is_weakly_connected, number_of_weakly_connected_components, weakly_connected_components | | | getGraphStatistics(social_network_type) | return radius, spectral_radius, average_clustering_coefficient, average_shortest_path_length, center, density, periphery, is_strongly_connected, number_of_strongly_connected_components, strongly_connected_components, is_weakly_connected, number_of_weakly_connected_components, weakly_connected_components | | ||
| getGraphStatistics(social_network_type, unique_node_id) | return closeness, betweenness, in_degree_centrality, out_degree_centrality, in_degree, out_degree, eccentricity | | | getGraphStatistics(social_network_type, unique_node_id) | return closeness, betweenness, in_degree_centrality, out_degree_centrality, in_degree, out_degree, eccentricity | | ||
- | | getShortestPath(pid1, pid2, [including_pid_list, excluding_pid_list]) | return shortest path between two people | | + | | getShortestPath(pid1, pid2, [including_pid_list, excluding_pid_list]) | return shortest path between two people | |
| getShortestPath(stock_id1, stock_id2, [including_stock_id_list, excluding_stock_id_list]) | return shortest path between two companies | | | getShortestPath(stock_id1, stock_id2, [including_stock_id_list, excluding_stock_id_list]) | return shortest path between two companies | | ||
| getShortestPath(stock_id, pid, [including_stock_id_list, excluding_stock_id_list, including_pid_list, excluding_pid_list]) | return shortest path between people and company | | | getShortestPath(stock_id, pid, [including_stock_id_list, excluding_stock_id_list, including_pid_list, excluding_pid_list]) | return shortest path between people and company | | ||
Line 88: | Line 88: | ||
| [[projs:clans:docs:ifnewpersonexistinxml|ifNewPersonExistInXML(person,information_list)]] | whether the new person exist in the current data | | | [[projs:clans:docs:ifnewpersonexistinxml|ifNewPersonExistInXML(person,information_list)]] | whether the new person exist in the current data | | ||
| [[projs:clans:docs:addnewperson|addNewRecord(person,information_list, update_date, source)]] | add new person | | | [[projs:clans:docs:addnewperson|addNewRecord(person,information_list, update_date, source)]] | add new person | | ||
- | | [[projs:clans:docs:mergenewpersoninxml|mergeNewPersonInXML(person, information_list, update_date, source)]] | merge perple's information in the current xml file | | + | | [[projs:clans:docs:mergenewpersoninxml|mergeNewPersonInXML(person, information_list, update_date, source)]] | merge people's information in the current xml file | |
| [[projs:clans:docs:updateperson|updatePerson(pid, information_list, update_date, source)]] | update exist person's information | | | [[projs:clans:docs:updateperson|updatePerson(pid, information_list, update_date, source)]] | update exist person's information | | ||