RssCell: Calculate the RSS from one node to another.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/RssCell.R

Description

This is a helper function for RelationStrengthSimilarity that returns the RSS for a single directed dyad.

Usage

1
  RssCell(xadj, v1, v2, radius)

Arguments

xadj

numeric matrix, adjacency matrix where the [i,j] entry gives the strength of the link from node i to node j.

v1

numeric, index of the 'from' node.

v2

numeric, index of the 'to' node.

radius

numeric, length of longest path examined from v1 to v2.

Details

This is an internal function. There are no guardians and it assumes that the adjacency matrix xadj has had zeros entered on the diagonal and then each row divided by the row mean.

Value

numeric, the Relation Strength Similarity score from v1 to v2.

Author(s)

Stephen R. Haptonstahl srh@haptonstahl.org

References

"Discovering Missing Links in Networks Using Similarity Measures", Hung-Hsuan Chen, Liang Gou, Xiaolong (Luke) Zhang, C. Lee Giles. 2012.

https://github.com/shaptonstahl/

See Also

RelationStrengthSimilarity

Examples

1
2
3
4
5
6
7
8
M <- as.matrix(get.adjacency(graph.atlas(128)))
M
M <- sweep(M, 1, rowMeans(M), "/")
M
dils:::RssCell(xadj=M, v1=5, v2=6, radius=1)
dils:::RssCell(xadj=M, v1=5, v2=6, radius=2)
dils:::RssCell(xadj=M, v1=5, v2=6, radius=3)
dils:::RssCell(xadj=M, v1=5, v2=6, radius=4)

dils documentation built on May 2, 2019, 8:28 a.m.