Skip to content

Commit 4fa3f85

Browse files
committed
chore: update graphai docs
1 parent 55f9334 commit 4fa3f85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,4 @@
246246
"youtube": "https://www.youtube.com/@jamesbriggs"
247247
}
248248
}
249-
}
249+
}

graphai/client-reference/graph.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ Adds an edge between two nodes that already exist in the graph.
6666
#### compile
6767

6868
```python
69-
def compile() -> "Graph"
69+
def compile(*, strict: bool = False) -> Graph
7070
```
7171

7272
Validate the graph:
7373
- exactly one start node present (or Graph.start_node set)
7474
- at least one end node present
7575
- all edges reference known nodes
76-
- no cycles
7776
- all nodes reachable from the start
77+
(optional) **no cycles** when strict=True
7878
Returns self on success; raises GraphCompileError otherwise.
7979

8080
#### get\_callback

0 commit comments

Comments
 (0)