Learn R Programming

rgTest (version 0.1)

weiArith: Weighted function

Description

This weight function returns the inverse of the arithmetic average of the node degrees of an edge.

Usage

weiArith(a, b)

Value

The weight uses the arithmetic average of the node degrees of an edge.

Arguments

a

node degree of one end of an edge

b

node degree of another end of an edge

Examples

Run this code
# For an edge where one end has a node degree of 5
# another end has a node degree of 6
 weiArith(6, 5)

Run the code above in your browser using DataLab