> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/contract/contract.call_graph.md).

# Contract.call\_graph()

`call_graph() →` [`CallGraph`](/glider-ide/api/internal/callgraph.md)

## Example query

```python
from glider import *

def query():
  contracts = Contracts().exec(50, 50)
  
  names = []
  for contract in contracts:
    call_graph = contract.call_graph()

    nodes = call_graph.name_prefix("min")

    for node in nodes:
      names.append(node.function_name())

  return [{"names": names}]
```

## Example output

```json
{
  "names": [
    "mint",
    "mint",
    "minVotingPeriod",
    "mint"
  ]
}
```
