analyseNetwork {NIMAA}R Documentation

General properties of the network

Description

Generic function for network properties, allowing you to get a quick overview of the network topology.

Usage

analyseNetwork(graph)

Arguments

graph

An igraph object.

Details

The following measurements are calculated in one step using the igraph package to analyze the input graph object: the Degree, Betweenness, Closeness, Kleinberg's hub score and Eigenvector centrality of nodes (vertices), the Betweenness centrality of edges, number of nodes, edges and components, the edge density, global Eigenvector centrality value and global Kleinberg's hub centrality score.

Value

A list containing vertices and edges centrality values as well as general_stats for the whole network.

See Also

vcount, ecount, edge_density, count_components, degree,betweenness, edge_betweenness,closeness, eigen_centrality,hub_score.

Examples

# generate a toy graph
g1 <- igraph::make_graph(c(1, 2, 3, 4, 1, 3), directed = FALSE)
igraph::V(g1)$name <- c("n1", "n2", "n3", "n4")

# generate random graph according to the Erdos-Renyi model
g2 <- igraph::sample_gnm(10, 23)
igraph::V(g2)$name <- letters[1:10]

# run analyseNetwork
analyseNetwork(g1)
analyseNetwork(g2)

[Package NIMAA version 0.2.1 Index]