Lua API

Node Degrees

Node Degree

Get the count of Relationships for a Node

Number NodeGetDegree(Node node)

Get the count of Relationships of a Direction for a Node

Number NodeGetDegree(Node node, Direction direction)

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

Number NodeGetDegree(Node node, Direction direction, String rel_type)

Get the count of Relationships of a Type for a Node

Number NodeGetDegree(Node node, String rel_type)

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

Number NodeGetDegree(Node node, Direction direction, String[] rel_types)

Get the count of Relationships of Types for a Node

Number NodeGetDegree(Node node, String[] rel_types)

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 NodeGetDegree(String type, String key, Direction direction)

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

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

Get the count of Relationships of a Type for a Node

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

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

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

Get the count of Relationships of Types for a Node

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

Get the count of Relationships for a Node by Id

Number NodeGetDegree(Number id)

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

Number NodeGetDegree(Number id, Direction direction)

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

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

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

Number NodeGetDegree(Number id, String rel_type)

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

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

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

Number NodeGetDegree(Number id, String[] rel_types)