getGraphlistdistance4Parts: getGraphlistdistance4Parts

Description Usage Arguments Value Author(s) Examples

View source: R/distanceComp.R

Description

used when there are numerous graphs, the graph samples can be divided into four as specified by the index. Run in 4 separate R sessions. Save the 4 matrices and reassemble the gram matrix

Usage

1
getGraphlistdistance4Parts(distribMatlist, index = 1, returnnodeDist = FALSE)

Arguments

distribMatlist

list of probability distribution matrices

index

possible values 1-4

returnnodeDist

Return node-wise distances(default=FALSE), if TRUE returns a list containing 2 elements: 1) nodewise distances and 2) graph distance (Gram) matrix

Value

Gram matrix with Pairwise distances

Author(s)

Ichcha Manipur & Mario R Guarracino

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data("KidneyGraphs")
binsList <- getBins(KidneyGraphs)
nddList <- lapply(KidneyGraphs, function(x) getNodeDistanceDistr(x, binsList))
# Run the function in 4 separate terminals store the matrix and reassemble with
extractDist4part
nddDistanceMatPar1 <- getGraphlistdistance4Parts(nddList, index = 1)
# or use getGraphdistance4PartsParallel()
## End(Not run)

cds-group/GraphDistances documentation built on Dec. 14, 2020, 8:26 a.m.