arrange: Arrange agents into hierarchy

View source: R/dag.R

arrangeR Documentation

Arrange agents into hierarchy

Description

Estimate agent hierarchy from a tally by assembling edges in order of decreasing weight and skipping cycle-creating ones. The effect is a directed acyclic graph that can be topologically-sorted into an agent order, though this order may not be unique depending on how well the latent hierarchy is sampled and whether it even exists.

Usage

arrange(tally)

Arguments

tally

a toporanga tally object.

Value

A toporanga_graph object, representing the established graph.

Note

The method may be stochastic if there are ties in weights.

Examples

data(EcoHAB)
arrange(tally_log(EcoHAB$winner,EcoHAB$loser))

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

Related to arrange in toporanga...