Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. with fornax.Connection('sqlite:///royals.sqlite') as conn:
  2. query_graph = fornax.GraphHandle.create(conn)
  3. query_graph.add_nodes(label=[
  4. 'Victoria', 'Victoria of Saxe Coburg Saalfeld'
  5. ])
  6. edges = [(0, 1)]
  7. query_graph.add_relationships(zip(*edges))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement