graph2effdist: Calculate effective distances between nodes of a graph

Description Usage Arguments Value Examples

View source: R/graph2effdist.r

Description

This function accepts an igraph object generated by package igraph and calcuates the effective distances.

Usage

1
graph2effdist(g, edge.attribute = NULL)

Arguments

g

An igraph object.

edge.attribute

An attribute from the graph, e.g. weight.

Value

A square matrix with effective distances between nodes.

Examples

1
2
# generates object 'units_effdist':
graph2effdist(units_igraph, edge.attribute = "weight")

joheli/yea13 documentation built on Sept. 18, 2020, 11:21 p.m.