pattern_match
Find structural subgraph matches within a diagram by specifying node and edge patterns, returning all matched locations and counts.
Instructions
Find all pattern matches within a diagram.
Implements subgraph matching to locate structural patterns.
Args: diagram_id: ID of diagram to search pattern: Pattern spec with 'nodes' (dict) and 'edges' (list) Each edge tuple: (source_id, target_id, constraints_dict)
Returns: dict with matches list, num_matches
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| diagram_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||