DiagrammeR icon indicating copy to clipboard operation
DiagrammeR copied to clipboard

Are create_nodes() and create_edges() deprecated?

Open topspinj opened this issue 7 years ago • 4 comments

The docs use create_nodes() and create_edges() but based on the code, these functions seem to be deprecated.

topspinj avatar Mar 23 '18 21:03 topspinj

I have the same question as just used. Which functions have been used to replace these?

Frank-Sw avatar Nov 23 '18 02:11 Frank-Sw

I'm seeing the same issue. Perhaps create_node_df() and create_edge_df() are the intended replacement.

timothytsai avatar Mar 14 '19 01:03 timothytsai

Same problem here. I'm trying to run the examples here http://rich-iannone.github.io/DiagrammeR/graph_creation.html and get the error "Error in create_nodes(nodes = 1:4, label = FALSE, type = "lower", style = "filled", : could not find function "create_nodes"". If these functions have indeed been deprecated, the error should tell the user what the name of the new current function is. As it is, this error is useless.

reblake avatar Apr 17 '19 19:04 reblake

This simple example works for me using create_edge_df, create_edge_df and create_graph

Create a simple NDF

nodes <- create_node_df( n=4, nodes = 1:4, shape = c("circle", "circle", "rectangle", "rectangle"), type = "number")

Create a simple EDF

edges <- create_edge_df( n=4, from = c(1, 1, 3, 1), to = c(2, 3, 4, 4), rel = "leading_to" )

g <- create_graph(nodes_df=nodes, edges_df=edges)

render_graph(g)

tranktle avatar Jul 10 '22 22:07 tranktle

@tranktle is correct. Feel free to open a new issue if something is not working as expected.

olivroy avatar Dec 08 '23 19:12 olivroy