# Create a graph with two nodes
graph <- create_graph(create_nodes(nodes = c("a", "b")))
# Add an edge between those nodes and attach a relationship to the edge
graph <- add_edge(graph, from = "a", to = "b", rel = "to_get")
Run the code above in your browser using DataLab