This adds an edge to the graph and reports TRUE
if addition was successful.
add_edge(g, start, target)
g | A nctx graph |
---|---|
start | ID of the source vertex |
target | ID of the target vertex |
TRUE
if addition was successful
#> [1] TRUE#> [1] TRUE#> [1] TRUE#> [1] TRUE#> [1] TRUE#> [1] TRUEadd_edge(g, 1, 2)#> [1] TRUE#> [1] TRUEadd_edge(g, 2, 3)#> [1] TRUEadd_edge(g, 3, 4)#> [1] TRUEadd_edge(g, 4, 5)#> [1] TRUEadd_edge(g, 3, 5)#> [1] TRUEadd_edge(g, 5, 9)#> [1] TRUEadd_edge(g, 6, 4)#> [1] TRUEadd_edge(g, 7, 4)#> [1] TRUEadd_edge(g, 2, 6)#> [1] TRUEadd_edge(g, 8, 2)#> [1] TRUEadd_edge(g, 9, 4)#> [1] TRUEadd_edge(g, 3, 10)#> [1] TRUEadd_edge(g, 10, 5)#> [1] TRUEadd_edge(g, 10, 9)#> [1] TRUE#> [1] TRUE