NDScanMatrix: NDScanMatrix

View source: R/oxy-SSNtools.R View source: R/SSNtools.R

NDScanMatrixR Documentation

NDScanMatrix

Description

calculate network density per node in a given threshold (searching window) from a user-defined matrix.

Usage

NDScanMatrix(
  nodes,
  edges,
  thres,
  matrix,
  min = 3,
  directed = FALSE,
  bipartite = FALSE
)

Arguments

nodes

nodes of graph (a list of named lists)

edges

edges of graph (a list of lists)

thres

threshold (e.g., distance, travel time) to calculate network density, given the user-defined matrix

matrix

a user-defined full matrix, including all pairs of nodes. The matrix's column and row names are consistent with nodes' labels. The cell values can be distance, travel time and so on.

min

(optional) minimum number of nodes in the searching window

directed

(optional) boolean value of whether the network is directed.

bipartite

(optional) boolean value of whether the data is a bipartite network

Details

DETAILS

Value

a list of two dataframes. The first R datafrmae contains a column of node label, and a column of heat associated with the node. The second R dataframe contains the edge pairs and a boolean column indicating whether the edge is within the scanning window.


friendlycities-gatech/SSNtools documentation built on Sept. 13, 2023, 10:40 a.m.