NetAnalyzer | R Documentation |
The NetAnalyzer function can calculate the degree, clustering coefficient, betweeness and closeness centrality for each node and the shortest path distance for each pair of nodes. The NetAnalyzer function can also plot the distributions for these measurements.
NetAnalyzer(inputNetwork, outputFileName,edgeType="unweighted")
inputNetwork |
The network under analysis. |
edgeType |
The type of the input network: "weighted" or "unweighted". |
outputFileName |
The name of the output file. |
The function will output two "txt" files and five "pdf" files. Two "txt" files contain degree, clustering coefficient, betweeness and closeness centrality for each node and the shortest path distance for each pair of nodes. Five "pdf" files are the distributions of these measurements.
Jing Wang
inputNetworkDir <- system.file("extdata","exampleNetwork.net",package="NetSAM")
outputFileName <- paste(getwd(),"/NetSAM",sep="")
NetAnalyzer(inputNetworkDir,outputFileName,"unweighted")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.