View source: R/get_graph_info.R
get_graph_info | R Documentation |
Get a data frame with metrics for a graph.
get_graph_info(graph)
graph |
A graph object of class |
A data frame containing metrics pertaining to the graph
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.