Skip to contents

This function is used to derive a network object from a coordinate matrix.

Usage

build_network(net, center_index, edge)

Arguments

net

a data frame containing columns named as x_center and y_center, which are the x and y coordinates of cells, respectively.

center_index

the index or name of the center cell.

edge

the maximal length for an edge to exist.

Value

a network object.