
Build the render-ready confluence forest of the soft DAG
Source:R/sniff_trajectory_confluence.R
sniff_trajectory_confluence.RdTurns a sniff_trajectory_braid() object into the data a trajectory confluence
needs: one rivers row per trajectory (with a per-year size curve) and one
confluences row per child to parent merge edge (papers transferred, the
first year a transferred paper was published, the handoff year, and the
cumulative-inflow curve). Every edge of the flow tree is kept; thresholds are
applied later by plot_trajectory_confluence(), so a slider can re-filter
without recomputing.
Arguments
- x
A
sniff_trajectory_braid()object, or adocs_per_grouptibble /sniff_groups_lineage()object /sniff_trajectory_dag()object (the flow is built internally).- min_group_size, jaccard_min, k_out
Passed to
sniff_trajectory_braid()whenxis not already a flow object.
Value
A list with:
- rivers
Tibble, one row per trajectory:
traj_id,type("central"/"absorbed"),central(destination groupcNgN),size,start,handoff_year(=last_yearfor centrals, else absorption year),depth,parent(absorbertraj_id,NAfor central), andsize_curve(list-col oftibble(year, size), the trajectory's community size per year).- confluences
Tibble, one row per child to parent merge:
child,parent,n(papers transferred),cohort_size(the child's size),first_feed_year(publication year of the first transferred paper),handoff_year, andinflow_curve(list-col oftibble(year, size)).- destinations
Tibble, one row per (absorbed trajectory, final group) it fed:
traj_id,g_final,n(papers of the trajectory's terminal cohort that ended up ing_final). A trajectory usually appears under several finals, so this is the multi-destination split the forest collapses to one.- centrals
The central group ids (
cNgN) inmixed_sort()order.- last_year
Final year of the analysis.
See also
sniff_trajectory_braid(), plot_trajectory_confluence()
Other trajectory analysis:
sniff_trajectory_cct(),
sniff_trajectory_community(),
sniff_trajectory_contribution(),
sniff_trajectory_destination(),
sniff_trajectory_dynamics(),
sniff_trajectory_emergence_owners(),
sniff_trajectory_entropy(),
sniff_trajectory_formation(),
sniff_trajectory_hubs(),
sniff_trajectory_self_sufficiency()