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.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.