snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.18k stars 799 forks source link

Bigclam ignoring -mc and -xc parameters #181

Closed oiwilliam closed 4 years ago

oiwilliam commented 4 years ago

I'm trying to run bigclam command from examples/bigclam with the command:

./bigclam -mc:60000 -xc:80000 -nt:7 -nc:100 -o:out.txt -i:input.csv

But the code seems to ignore the parameters mc and xc, since wc -l reveals just 100 lines in the out.txt.

The number of communities to detect (-1: detect automatically) (-c:)=100
Minimum number of communities to try (-mc:)=60000
Maximum number of communities to try (-xc:)=80000
How many trials for the number of communities (-nc:)=100
Number of threads for parallelization (-nt:)=7
Alpha for backtracking line search (-sa:)=0.05
Beta for backtracking line search (-sb:)=0.3
Graph: 190608 Nodes 2436844 Edges
conductance computation completed [10.63s]
MLE completed with 506 iterations(114 secs)5, Diff: 3755.213094 [114 secs]]
run time: 11m13s (12:26:02)
oiwilliam commented 4 years ago

Ok, I got it. I need to set the -c parameter to -1 even if I supply the mc and xc parameters.