link_nodes_between_groups: Link nodes between groups

link_nodes_between_groupsR Documentation

Link nodes between groups

Description

Create species in a Xu problem by creating links between nodes in different groups. Each link will represent a species that appears on the planning units at each end of the link and those planning units are in separate groups. Assumes that all groups and their within group links have already been built.

Usage

link_nodes_between_groups(
  target_num_links_between_2_groups_per_round,
  num_rounds_of_linking_between_groups,
  n__num_groups,
  nodes,
  edge_list,
  cur_row
)

Arguments

target_num_links_between_2_groups_per_round

integer

num_rounds_of_linking_between_groups

integer

n__num_groups

integer

nodes

data frame containing integer node_ID, integer group_ID, and boolean dependent_set_member

edge_list

two column integer matrix of node IDs with one row for each edge and columns for the 2 ends of the edge

cur_row

integer

Value

Returns edge_list as two column integer matrix of node IDs with one row for each edge and columns for the 2 ends of the edge


langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.