triversity: Diversity Measures on Tripartite Graphs

triversity is an R package for the computation of diversity measures on tripartite graphs. First, it implements a parametrized family of such diversity measures which apply on probability distributions. Sometimes called “True Diversity”, this family contains famous measures such as the Richness, the Shannon entropy, the Herfindahl-Hirschman index, and the Berger-Parker index. Second, the package allows to apply these measures on probability distributions resulting from random walks between the levels of tripartite graphs. By defining an initial distribution at a given level of the graph and a path to follow between the three levels, the probability of the walker’s position within the final level is then computed, thus providing a particular instance of diversity to measure.


git clone


This package has been developed by researchers of the Complex Networks team, within the Computer Science Laboratory of Paris 6, for the AlgoDiv project, founded by the French National Agency of Research under grant ANR-15-CE38-0001.

List of main collaborators: - Robin Lamarche-Perrin - Lionel Tabourier - Fabien Tarissan - Raphaël Fournier S’niehotta - Rémy Cazabet


Copyright © 2017 Robin Lamarche-Perrin (
triversity is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see