Modularity index groups are allways 0-index based. #1977
Closed
Description
Expected Behavior
Each time you execute the modularity algorithm it should ask you for an index (k) from which the algorithm will start adjudging indexes to groups. The output will be k-based instead of 0-based.
Current Behavior
The output of this algorithm is allways 0-based, it always starts with 0.
Possible Solution
To have an input box to insert k and then after the algorithm runs add this number to all indexes. Resulting in a k-index based list.
Steps to Reproduce
- Go to Statistics -> Modularity -> Execute -> Accept
- The algorithm creates N groups and gives a 0-index based ID
- Filter some nodes
- Go to Statistics -> Modularity -> Execute -> Accept
- The algorithm creates N groups and gives a 0-index based ID (There is no way of changing the index in which it starts)
- Stop the filter
- The groups with the same ID will be mixed.
Context
Filtering and runing the modularity algorithm inside different groups (Man , Women)
Your Environment
- Version used: Gephi 0.9.2
- Java version: 1.8
- Operating System: Windows 10