QuickIM is a fast algorithm to find top k most influential vertices on a large scale Network.
QuickIM
is built under linux gcc 4.8.4
QuickIM.exe
is built under win10 gcc 5.3.0
QuickIM accepts directed graph with probability on the edge.
The first line of the graph data should be N M
where N is the total node number and M is the total edge number.
Then the followed M lines are the M directed edges. Each line is u v p
that means there is an edge from node u to node v and the probability that u influence v is p. (0<=u, v<N)
The command format is
./QuickIM <data_filename> <k>
Example
./QuickIM ./data/DBLP_wc.txt 10
QuickIM use standard output stream to output result. The result include QuickIM algorithm elapsed time, top k nodes.
Example
Execute as
./QuickIM ./data/DBLP_wc.txt 5 >./result/DBLP_wc_5.txt
Result is
[result]
data_file = ./data/DBLP_wc.txt
k = 5
L = 3
QucikIM_time = 0.20864
chosed_node_list = 7276 2289 1255 1299 8740