diff options
author | KatolaZ <katolaz@freaknet.org> | 2017-09-27 15:06:31 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2017-09-27 15:06:31 +0100 |
commit | 3aee2fd43e3059a699af2b63c6f2395e5a55e515 (patch) | |
tree | 58c95505a0906ed9cfa694f9dbd319403fd8f01d /doc/modularity.md |
First commit on github -- NetBunch 1.0
Diffstat (limited to 'doc/modularity.md')
-rw-r--r-- | doc/modularity.md | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/doc/modularity.md b/doc/modularity.md new file mode 100644 index 0000000..445e705 --- /dev/null +++ b/doc/modularity.md @@ -0,0 +1,59 @@ +modularity(1) -- Compute the modularity of a partition of a graph +====== + +## SYNOPSIS + +`modularity` <graph_in> <partition> + +## DESCRIPTION + +`modularity` computes the value of the modularity function associated +to a partition of the nodes of the graph given as input. + +## PARAMETERS + +* <graph_in>: + undirected input graph (edge list). If is equal to `-` (dash), read + the edge list from STDIN. + +* <partition>: + The name of the file containing the association of nodes to + communities (the partition of which one wants to compute the + modularity). See [INPUT FORMAT][] for details. + +## INPUT FORMAT + +<graph_in> is an edge-list. The file <partition> is in the format: + + node_0 community_0 + node_1 community_1 + .... + +where 'node_0' is the label of the first node and 'community_0' is the +community to which 'node_0' belongs, and so on. + +## OUTPUT + +`modularity` prints on STDOUT the value of the modularity function +associated to the partition of the graph provided as input. The +program also prints on STDERR one line in the format: + + ## nc: NUM_COMMUNITIES + +where 'NUM_COMMUNITIES' is the number of communities in the partition +provided as input. + + +## REFERENCES + +* M\. E. J. Newman and M. Girvan. "Finding and evaluating community + structure in networks". Phys. Rev. E 69, (2004), 026113. + +* V\. Latora, V. Nicosia, G. Russo, "Complex Networks: Principles, + Methods and Applications", Chapter 9, Cambridge University Press + (2017) + + +## AUTHORS + +(c) Vincenzo 'KatolaZ' Nicosia 2009-2017 `<v.nicosia@qmul.ac.uk>`. |