ppiPre (version 1.7)

AASim: Compute Adamic-Adar Index Between Two Nodes in PPI Network

Description

Given a network and two nodes, this function will calculate the Adamic-Adar Index between the two nodes

Usage

AASim(node1, node2, graph)

Arguments

node1
Name of one node in the PPI network.
node2
Name of another node in the PPI network.
graph
A PPI network

Value

  • The Adamic-Adar Index between the two nodes

References

[1] L. A. Adamic and E. Adar, "Friends and neighbors on the Web", Social Networks, vol. 25, no. 3, pp. 211-230, 2003.

See Also

RASim JaccardSim

Examples

Run this code
edges <- data.frame(node1=c("1132", "1133", "1134", "1134", "1145", "1147", "1147", "1147"),
                      node2=c("1134", "1134", "1145", "1147", "1147", "1148", "1149", "1150"))
  graph<-igraph::graph.data.frame(edges,directed=FALSE)
  AASim("1134","1147",graph)

Run the code above in your browser using DataCamp Workspace