dist.graph: Distances on graph

Description Usage Arguments Details Value Note Author(s) References Examples

Description

Distances on graphs

Usage

1
dist.graph(g, method=c("shortest.paths","diffusion"), v=V(g), correctInf = TRUE, ...)

Arguments

g
method
v
correctInf
...

Details

bla

Value

bla bla bla

Note

bla bla bla

Author(s)

Florian Markowetz

References

http://www.markowetzlab.org/software

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (g, method = "shortest.paths", correctInf = TRUE, ...) 
{
    D <- switch(method, shortest.paths = shortest.paths(g, ...), 
        diffusion = graph.diffusion(g, ...)$dist)
    if (correctInf) 
        D[D == Inf] <- max(D[D != Inf]) + 1
    dimnames(D) <- list(V(g), V(g))
    return(D)
  }

nea documentation built on May 2, 2019, 5:52 p.m.