summary.dynet_path_trajectories: Summarise path trajectories

View source: R/path-trajectory.R

summary.dynet_path_trajectoriesR Documentation

Summarise path trajectories

Description

Summarise path trajectories

Usage

## S3 method for class 'dynet_path_trajectories'
summary(object, ...)

Arguments

object

A dynet_path_trajectories result.

...

Ignored.

Value

A plain data.frame, one row per depth in increasing order: depth, the number of distinct branches reaching it, the number of distinct vertices they land on, the summed count of routes through it, and mean_branching, the average branching fraction of those routes. Note probability in the underlying table is CONDITIONAL on each parent, so it is averaged rather than summed: adding conditional fractions across siblings would not be a probability at all. Depth zero is the queried vertex itself and has no parent, so its mean_branching is NA.

Examples

dn <- dynet(school_contacts)
routes <- paths(dn, from = "Ana")
trajectories <- path_trajectories(routes)
summary(trajectories)

Dynet documentation built on Oct. 7, 2026, 5:08 p.m.