So I have a graphdb that has multiple nodes and at most a single edge between each of the nodes. For gathering certain data, I need to visit all nodes, say something like a breadth-first search. For that, I am using match
method of py2neo like so:
graph.match(node, "KNOWS", end_node=None, bidirectional=True)
However, I need to visit a node only once. Meaning, my use would be intolerant about having a node twice in the data set. How do I specify such a constraint on the graphdb using py2neo?
Thanks