Correlation Subgraph
get_correlation_subgraphExtract an N-hop subgraph around any entity, returning nodes, edges, and fidelity scores to incrementally explore correlation graph topology and compare edge strength.
Instructions
The N-hop neighbourhood around any graph node — nodes, edges, and each edge's fidelity — for incremental exploration of the correlation graph. Start at depth 1 and expand: a whole-corpus graph exceeds every response budget. For a pre-aggregated single-entity view prefer get_entity_profile, which is cheaper and usually what you want; use this when you need the actual edge topology. Edges of the NPMI types (actor_technique, technique_cooccurrence) also carry the raw pmi, co_occurrence_count and the marginals {c, df_actor, df_tech, N} the score was computed from — use those, not the rounded fidelity, to compare two edges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Hops, 1-3 (default 1). Each hop multiplies the node count. | |
| seed_id | Yes | The entity id/value to expand from. | |
| edge_type | No | Keep only edges of this type (also prunes the traversal, so it changes which nodes are reachable). Omit for all types. | |
| seed_type | Yes | ||
| limit_edges | No | Default 80, max 120 over MCP. | |
| limit_nodes | No | Default 40, max 60 over MCP. | |
| min_fidelity | No | Drop edges below this fidelity. Scale is 0-100, NOT 0-1 — typical NPMI edges sit between 5 and 30, so 0.5 filters nothing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| edges | No | ||
| nodes | No | ||
| counts | No | ||
| truncated | No | ||
| params_echo | No |