Learn R Programming

NetworkSim (version 0.1.0)

netGDD: Calculate the Graphlet degree distribution (GDD) agreement between two networks

Description

Calculate the Graphlet degree distribution (GDD) agreement between two networks

Usage

netGDD(net1, net2, mean = "arithmetic", i2inc = T)

Arguments

net1

The input network, which should be one of incgraph and igraph objects

net2

The input network, which should be one of incgraph and igraph objects

mean

"arithmetic" or "geometric" mean to be used

i2inc

Whether the input graph object should to transformed into incgraph object

Value

Agreement value between 0 and 1

Details

netGDD(net1,net2,mean='arithmetic',i2inc=T)

Examples

Run this code
# NOT RUN {
 nodes <-names(igraph::V(databases.net))

 net1 <-subnet(databases.net,sample(nodes,100))

 net2 <-subnet(databases.net,sample(nodes,100))

 netGDD(net1,net2)

# }

Run the code above in your browser using DataLab