Learn R Programming

netjack (version 1.2.0)

network_statistics: Network Statistic Functions

Description

These functions compute a variety of network statistics on single Net objects.

Usage

global_efficiency(Net)

modularity(Net, community.variable)

Arguments

Net

Input Net object

community.variable

character name of the node variable that represents the partition.

Value

Network statistic value

References

Examples

Run this code
# NOT RUN {
data(GroupA)
GroupA1_Net = as_Net(GroupA[[1]], "1", list(community = c(rep(1, 10), rep(2,10))))
global_efficiency(GroupA1_Net)
modularity(GroupA1_Net, "community")
# }

Run the code above in your browser using DataLab