static_shortest_path: Function to return shortest path from 1 TF to 1 TG in a...

Description Usage Arguments Value

View source: R/6_networkAnalysis.R

Description

Function to return shortest path from 1 TF to 1 TG in a static network

Usage

1
2
3
4
5
6
7
static_shortest_path(
  grnDF,
  from,
  to,
  weight_column = "weighted_score",
  compare_to_average = FALSE
)

Arguments

grnDF

a static network dataframe

from

the starting TF

to

the end TF

weight_column

column name in grnDF with edge weights that will be converted to distances

compare_to_average

if TRUE will compute normalized against average path length

Value

shortest path, distance, normalized distance, and action


pcahan1/epoch documentation built on Feb. 14, 2022, 1:57 a.m.