LocalFlatteningRatio: Local Network Flattening Ration

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

LocalFlatteningRatioR Documentation

Local Network Flattening Ration

Description

calculate local network flattening ratio for nodes.

Usage

LocalFlatteningRatio(nodes, edges, minK = 1, bipartite = FALSE)

Arguments

nodes

nodes of graph (a list of named lists)

edges

edges of graph (a list of lists)

minK

(optional) minimum k value (degree) for a node to have a meaningful local flattening ratio value. K=1 means the node only has one connection.

bipartite

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

Details

DETAILS

Value

a list of two dataframes. The first R dataframe contains a column of node label, and a column of Local_flattening_ratio associated with the node. The second R dataframe contains the edge pairs and a boolean column indicating whether the source node is k-nearest neighbor to the target node and vice versa.


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