link_nodes_within_groups: Link nodes within groups

link_nodes_within_groupsR Documentation

Link nodes within groups

Description

Create species in a Xu problem by creating links between nodes within SAME group. 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.

Usage

link_nodes_within_groups(num_nodes_per_group, n__num_groups, nodes, edge_list)

Arguments

num_nodes_per_group

integer number of planning units per group in the Xu problem

n__num_groups

integer number of groups in the Xu problem, one of the 4 base input parameters for specifying the Xu problem

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

Value

Returns list containing edge_list and cur_row


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