Learn R Programming

DiagrammeR (version 1.0.9)

get_graph_info: Get metrics for a graph

Description

Get a data frame with metrics for a graph.

Usage

get_graph_info(graph)

Value

A data frame containing metrics pertaining to the graph

Arguments

graph

A graph object of class dgr_graph.

Examples

Run this code
if (FALSE) {
# 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()
}

Run the code above in your browser using DataLab