Creates a dataframe of unique nodes and vertices combinations. For example, it might list all team members/nodes working on projects, connected via a project ID.

make_connections(data, node_col, connect_col, weight_col = NULL)

Arguments

data

Dataframe holding the information you'd like to reformat

node_col

The data column containing identifiers for nodes

connect_col

The data column containing the ids of objects connecting nodes, for example, project IDs, locations, mentees

weight_col

A column from data containing quantitative information to set edge width for connections in make_edges(). Optional.

Value

A dataframe containing details of connections between nodes via 'connecting objects'. Will include a unique node_number column for use in downstream functions. Note this dataframe can have duplicate node-connecting object rows depending on the nature of the source dataframe.