tigergraph__has_edge
Check if an edge exists between two vertices in a TigerGraph graph. Use to verify relationships efficiently before adding or querying edges.
Instructions
Check if an edge (relationship) exists between two vertices without retrieving its data.
Use When: • Verifying relationship existence • Validation logic • More efficient than get_edge when you only need existence check
Quick Start:
{
"source_vertex_type": "Person",
"source_vertex_id": "user1",
"edge_type": "FOLLOWS",
"target_vertex_type": "Person",
"target_vertex_id": "user2"
}Tips: • Returns boolean (true/false) • Faster than get_edge when you don't need the data • Use before add_edge to avoid duplicates
Related Tools: get_edge, add_edge
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. | |
| edge_type | Yes | Type of the edge. | |
| graph_name | No | Name of the graph. If not provided, uses default connection. | |
| source_vertex_id | Yes | ID of the source vertex. | |
| target_vertex_id | Yes | ID of the target vertex. | |
| source_vertex_type | Yes | Type of the source vertex. | |
| target_vertex_type | Yes | Type of the target vertex. |