toporanga: Topological Sort-Based Hierarchy Inference

Deciphering hierarchy of agents exhibiting observable dominance events is a crucial problem in several disciplines, in particular in behavioural analysis of social animals, but also in social sciences and game theory. This package implements an inference approach based on graph theory, namely to extract the optimal acyclic subset of a weighted graph of dominance; this allows for hierarchy estimation through topological sorting. The package also contains infrastructure to investigate partially defined hierarchies and hierarchy dynamics.

Getting started

Package details

AuthorMiron B. Kursa [aut, cre] (ORCID: <https://orcid.org/0000-0001-7672-648X>)
MaintainerMiron B. Kursa <m@mbq.me>
LicenseGPL-3
Version1.0.0
URL https://gitlab.com/mbq/toporanga
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("toporanga")

Try the toporanga package in your browser

Any scripts or data that you put into this service are public.

toporanga documentation built on Aug. 8, 2025, 6:15 p.m.