parameters: Parameters of agents from a graph

View source: R/graph.R

parametersR Documentation

Parameters of agents from a graph

Description

Pull numerical descriptors of a toporanga graph.

Usage

parameters(g)

Arguments

g

toporanga_graph object generated from tally.

Value

A data.frame object. Each of its rows corresponds to one agent. This agent's ID is listed in the Agent column. Superiors counts the number of agents which are upstream from a given agent, while Subordinates counts those downstream. This numbers correspond to a rank when when there is only one unique toposort of the dominance graph, and provide a graceful degradation if not. In particular they do not depend on random seed or the default toposort stored in the graph object. Thus, subordinate count is a recommended outcome if a single dominance score of an agent is desired. The Order column notes the aforementioned default toposort, which can be re-sampled with the sample_toposort. Additional columns may appear depending on meta-data in the graph object, in particular epoch parameters when using epoch argument of toporanga function.


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