diffuse {toporanga}R Documentation

Diffuse the weights over indirect links.

Description

Uses the Schulze / widest path approach to re-express indirect domination into direct one. For instance, if A\rightarrow B and B\rightarrow C both have weight 10, but A\rightarrow C has weight 3, it is gonna be corrected to 10 by this function.

Usage

diffuse(tally, blend)

Arguments

tally

a toporanga_tally object.

blend

a numerical factor to limit the effect of diffusion; weight of indirect path is multiplied by the given factor, while direct weights are not changed. When set to 1, function behaves the same as blend was not given at all, when given 0, whole diffuse returns tally unchanged.

Value

A modified toporanga_tally object.


[Package toporanga version 1.0.0 Index]