print.dgr_graph: Print the graph to the terminal

Description Usage Arguments Examples

View source: R/print.R

Description

This function will provide a summary of the graph.

Usage

1
2
## S3 method for class 'dgr_graph'
print(x, ...)

Arguments

x

A graph object of class dgr_graph.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# Create a random graph using the
# `add_gnm_graph()` function
graph <-
  create_graph() %>%
  add_gnm_graph(
    n = 10,
    m = 15,
    set_seed = 23)

# Get a summary of the graph
graph

## End(Not run)

Example output

sh: 1: cannot create /dev/null: Permission denied
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") : cannot open file '/etc/timezone': Permission denied
Warning: Your system is mis-configured: '/etc/localtime' is not a symlink
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") : cannot open file '/etc/timezone': Permission denied
Warning: Your system is mis-configured: '/etc/localtime' is not a symlink
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") : cannot open file '/etc/timezone': Permission denied
Warning: Your system is mis-configured: '/etc/localtime' is not a symlink
sh: 1: cannot create /dev/null: Permission denied
DiagrammeR Graph // 10 nodes / 15 edges
  -- directed / connected / simple

  NODES / type: <unused> / label: 10 vals - complete & unique
    -- no additional node attributes
  EDGES / rel: <unused>                                    info: `get_edge_df()`
    -- no additional edge attributes
  SELECTION / <none>
  CACHE / <none>
  STORED DFs / <none>
  GLOBAL ATTRS / 17 are set                 info: `get_global_graph_attr_info()`
  GRAPH ACTIONS / <none>
  GRAPH LOG / create_graph() -> add_gnm_graph()

DiagrammeR documentation built on July 2, 2020, 3:19 a.m.