Skip to contents

Convert output of find_cycles() to a dataframe Converts a node cycle list to a dataframe of nodes and cycle IDs, internal helper function.

Usage

cycle_node_list_to_cycle_node_df(node_cycles_list, wide = FALSE)

Arguments

node_cycles_list

list of nodes in each cycle_id (output of find_cycles())

wide

logical, return data as a wide dataframe (multiple cycle_ids in a list in each row), or long dataframe (1 cycle_id for each row representing a node)

Value

tibble, dataframe