Skip to content

Commit 1e16a3c

Browse files
danieledlerAnton Eriksson
authored andcommitted
feat: Write top modules to .clu, not bottom level
BREAKING CHANGE: Clu output now contains top modules instead of leaf modules
1 parent 6e27858 commit 1e16a3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/InfomapBase.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,11 @@ class InfomapBase : public InfomapConfig<InfomapBase>
401401
* based on output directory and input file name
402402
* @param states if memory network, print the state-level network without merging physical nodes within modules
403403
* @param moduleIndexLevel the depth from the root on which to advance module index.
404-
* Value 1 will give the module index on the coarsest level, 2 the level below and so on. Default
405-
* value -1 will give the module index for the lowest level, i.e. the finest modular structure.
404+
* Value 1 (default) will give the module index on the coarsest level, 2 the level below and so on.
405+
* Value -1 will give the module index for the lowest level, i.e. the finest modular structure.
406406
* @return the filename written to
407407
*/
408-
std::string writeClu(std::string filename = "", bool states = false, int moduleIndexLevel = -1);
408+
std::string writeClu(std::string filename = "", bool states = false, int moduleIndexLevel = 1);
409409

410410
/**
411411
* Write modular network to a .map file.

0 commit comments

Comments
 (0)