Problems of Converting Graphs to Chart Chart

I like to use igraph

to create and manage graphs, and I want to use DiagrammeR

to make nice visualization of graphs. I am having trouble converting my charts to DiagrammeR

.

> library(igraph)
> library(DiagrammeR)
> g = make_empty_graph() + vertices(c("a", "b")) + edge("a", "b")
> x = from_igraph(g)
Warning messages:
1: In data.frame(from = as.integer(igraph::ends(igraph, igraph::E(igraph))[,  :
  NAs introduced by coercion
2: In data.frame(from = as.integer(igraph::ends(igraph, igraph::E(igraph))[,  :
  NAs introduced by coercion
> x
$graph_info
  graph_id     graph_name          graph_time graph_tz write_backups
1 6Z3ljgDB graph_6Z3ljgDB 2017-03-23 15:14:01     <NA>         FALSE

$nodes_df
  id type label
1  1 <NA>  <NA>
2  2 <NA>  <NA>
...

      

This is for drake which is highly dependent igraph

and I don't want to convert the internals to DiagrammeR

.

+3


source to share





All Articles