Lua API

Node Degrees

Node Degree

Get the count of Relationships for a Node

Number NodeGetDegree(String type, String key)

Get the count of Relationships of a Direction for a Node

Number NodeGetDegreeForDirection(String type, String key, Direction direction)

Get the count of Relationships of a Direction and Type for a Node

Number NodeGetDegreeForDirectionForType(String type, String key, Direction direction, String rel_type)

Get the count of Relationships of a Type for a Node

Number NodeGetDegreeForType(String type, String key, String rel_type)

Get the count of Relationships of a Direction and Types for a Node

Number NodeGetDegreeForDirectionForTypes(String type, String key, Direction direction, String[] rel_types)

Get the count of Relationships of Types for a Node

Number NodeGetDegreeForTypes(String type, String key, String[] rel_types)

Get the count of Relationships for a Node by Id

Number NodeGetDegreeById(Number id)

Get the count of Relationships of a Direction for a Node by Id

Number NodeGetDegreeByIdForDirection(Number id, Direction direction)

Get the count of Relationships of a Direction and Type for a Node by Id

Number NodeGetDegreeByIdForDirectionForType(Number id, Direction direction, String rel_type)

>Get the count of Relationships of a Type for a Node by Id

Number NodeGetDegreeByIdForType(Number id, String rel_type)

Get the count of Relationships of a Direction and Types for a Node by Id

Number NodeGetDegreeByIdForDirectionForTypes(Number id, Direction direction, String[] rel_types)

Get the count of Relationships of Types for a Node by Id

Number NodeGetDegreeByIdForTypes(Number id, String[] rel_types)