Skip to content

Instantly share code, notes, and snippets.

@robhardwick
Created December 8, 2014 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robhardwick/62fd988b472d88c2091e to your computer and use it in GitHub Desktop.
Save robhardwick/62fd988b472d88c2091e to your computer and use it in GitHub Desktop.
Louvaine
$ ./convert
In or outfile missing
usage: ./convert -i input_file -o outfile [-r] [-w outfile_weight]
read the graph and convert it to binary format.
-r nodes are renumbered from 0 to nb_nodes-1 (the order is kept).
-w filename read the graph as a weighted one and writes the weights in a separate file.
-h show this usage message.
$ ./community
Bad arguments number
usage: ./community input_file [-w weight_file] [-p part_file] [-q epsilon] [-l display_level] [-v] [-h]
input_file: file containing the graph to decompose in communities.
-w file read the graph as a weighted one (weights are set to 1 otherwise).
-p file start the computation with a given partition instead of the trivial partition.
file must contain lines "node community".
-q eps a given pass stops when the modularity is increased by less than epsilon.
-l k displays the graph of level k rather than the hierachical structure.
if k=-1 then displays the hierarchical structure rather than the graph at a given level.
-v verbose mode: gives computation time, information about the hierarchy and modularity.
-h show this usage message.
$ ./hierarchy
Bad arguments number
usage: ./hierarchy input_file [options]
input_file: read the community tree from this file.
-l xx display the community structure for the level xx.
outputs the community for each node.
xx must belong to [-1,N] if N is the number of levels.
-n displays the number of levels and the size of each level.
equivalent to -l -1.
-h show this usage message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment