tigergraph__get_node_degree
Calculates the degree (number of connected edges) of a vertex in TigerGraph, with optional direction and edge type filters.
Instructions
Get the degree (number of connected edges) of a node in a TigerGraph graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Connection profile name. Omit to use the active default profile. Use 'list_connections' to see available profiles. | |
| direction | No | Direction of edges: 'outgoing', 'incoming', or 'both'. | both |
| edge_type | No | Type of edges to count. If not provided, counts all edge types. | |
| vertex_id | Yes | ID of the vertex. | |
| graph_name | No | Name of the graph. If not provided, uses default connection. | |
| vertex_type | Yes | Type of the vertex. |