# NOT RUN {
# Import a GML graph file
gml_graph <-
import_graph(
system.file(
"extdata/karate.gml",
package = "DiagrammeR"))
# Get a count of the graph's nodes
gml_graph %>%
node_count()
#> [1] 34
# Get a count of the graph's edges
gml_graph %>%
edge_count()
#> [1] 78
# }
Run the code above in your browser using DataLab