CINNA (version 1.1.2)

visualize_graph: Graph visualization based on a specific centrality measure

Description

This function demonstrates the input graph in which the size of nodes indicates calculated centrality value.

Usage

visualize_graph(x, computed_centrality_value = NULL,
  centrality.type = "Degree Centrality")

Arguments

x

an igraph object

computed_centrality_value

A vector containing the values of calculated centrality measure for each node.

centrality.type

The type of centrality which should be calculated.

Value

a plot illustrating the graph

Details

This function represents the graph in which size of nodes are based on computed centrality value. If the values of wanted centrality measure were computed then by placing them in computed_centrality_value argument to use it for drawing the plot. Otherwise, by only giving the name of favorite centrality measure in centrality.type argument, this function will calculate it and then demonstrates the corresponding graph.