As I understand from the documentation of py2neo, the only way to add a label to a node is to use the add_labels()
function, after the node is created. Is there any way to define label/s in the create(node())
function?
The only option right now is to use Cypher to create the node instead of the 'create' method. This is because the underlying REST resource does not support creation of nodes with labels. The next version of py2neo (currently in beta) will make the process slightly simpler, allowing labels to be used through the 'create' method by wrapping Cypher directly instead.