Skip to content

Commit 19838ff

Browse files
authored
Add missing ExternalModule import (#292)
# Motivation The code example is missing this import. # Content Add missing import to code example. # Testing Tested the code in a codegen script. # Please check the following before marking your PR as ready for review - [X] I have added tests for my changes - [X] I have updated the documentation or added new documentation as needed
1 parent f65f112 commit 19838ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/building-with-codegen/traversing-the-call-graph.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Here's how to build a directed graph of function calls using NetworkX:
3232
import networkx as nx
3333
from codegen.sdk.core.interfaces.callable import FunctionCallDefinition
3434
from codegen.sdk.core.function import Function
35+
from codegen.sdk.core.external_module import ExternalModule
3536

3637
def create_call_graph(start_func, end_func, max_depth=5):
3738
G = nx.DiGraph()

0 commit comments

Comments
 (0)