calculateAPSPmodule: create a module of the set of all-pairs shortest paths (APSP)

View source: R/APSP.R

calculateAPSPmoduleR Documentation

create a module of the set of all-pairs shortest paths (APSP)

Description

a convenience function for generating APSP for a set of seeds - note that this is ALL paths of the shortest length, not just one

Usage

calculateAPSPmodule(seeds, searchGraph, omitNA = TRUE)

Arguments

seeds

A set of seen nodes. These should correspond to the 'name' field of the searchGraph

searchGraph

An igraph object representation of the network within which to search from shortest-path pairs

omitNA

Logical flag to dictate if NA values should be stripped from input (default: TRUE)

Value

An igraph representation of the APSP sampling


adamsardar/stoneTrees documentation built on May 20, 2022, 7:38 p.m.