Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_graph_info

Get metrics for a graph


Description

Get a data frame with metrics for a graph.

Usage

get_graph_info(graph)

Arguments

graph

A graph object of class dgr_graph.

Value

A data frame containing metrics pertaining to the graph

Examples

## Not run: 
# Import a GML graph file available
# in the DiagrammeR package
karate_club <-
  system.file(
    "extdata", "karate.gml",
    package = "DiagrammeR") %>%
  import_graph() %>%
  set_graph_name("karate")

# Display a data frame with
# graph information
karate_club %>%
  get_graph_info()

## End(Not run)

DiagrammeR

Graph/Network Visualization

v1.0.6.1
MIT + file LICENSE
Authors
Richard Iannone [aut, cre] (<https://orcid.org/0000-0003-3925-190X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.