R/fct_graph_helpers.R
format_edge.Rd
Takes in a row from a graph dataframe, returns that row formatted as R code
format_edge(edge_df)
One row from a gfpop::graph() graph df, with column names
a string corresponding to the code that, when run, produces the given edge
graph <- gfpop::graph(type = "std")
format_edge(graph[1,])
#> [1] "gfpop::Edge(state1 = 'Std', state2 = 'Std', type = 'null', gap = 1, penalty = 0, K = Inf, a = 0)"