Here is another basic question for some basic functionality of py2neo (v4) that does not work in the intuitive way.
How to get/print the list of existing relationship types?
In the documentation's graph section of the database page there is a method relationship_types
which supposedly returns "The set of relationship types currently defined within the graph.", and I expected it to work like this:
print(graph.relationship_types)
but I get the error 'Graph' object has no attribute 'relationship_types'
.
But if that's the case, what does have that attribute? There is no example of using this method on that page (or anywhere else I could find), and I am having trouble with a lot of the basic functionality of py2neo for similar reasons.