dist_paths: Shortest path distances

Description Usage Arguments See Also

View source: R/main.R

Description

Takes as input the network as well as the species communities to be compared and gives as output the pairwise distance matrix between species communities. The use of the NetFrac function is recommended if the global distances (between all pair of communities) are needed.

Usage

1
dist_paths(x, col1, col2, distance = "paths", paths = "single", info = NULL, type = "graph", maxcores = 1)

Arguments

x

The igraph object to be analyzed

col1

Community one

col2

Community two

distance

Distances that are implemented in NetFrac. See also the NetFrac function

paths

Take into account all possible shortest paths or only one

info

Information about the tree if the input is a tree

type

Tree or network

maxcores

Number of parallel cores to be used for calculation (one by default)

See Also

NetFrac


XPHenry/Netfrac documentation built on Jan. 29, 2020, 12:14 p.m.