degree = nodeDegree(node,direction)
returns the in- or out-degree for each relationship for the specified Neo4jNode object.
direction specifies the relationship direction.
Relationship direction, specified as either 'in' for an incoming
relationship or 'out' for an outgoing relationship. The relationships
are associated with the specified origin node.
In- or out-degree, returned as a structure. Each field in the structure
represents either incoming or outgoing relationship types. If there are no
incoming or outgoing relationship types, the structure is empty.