This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d169adc75 Fix SubgraphStrategy JavaScript and Python example syntax
7d169adc75 is described below

commit 7d169adc75cc46a20ade6d9a821dd2b4350a6ade
Author: Stephen Mallette <[email protected]>
AuthorDate: Fri Sep 11 23:34:49 2026 +0000

    Fix SubgraphStrategy JavaScript and Python example syntax
    
    Correct the JavaScript and Python SubgraphStrategy snippets in the reference
    docs so each is valid in its target language. The JavaScript example now 
uses
    the options-object constructor and the Python example uses the snake_case
    keyword argument form without the 'new' keyword.
    
    Assisted-by: Kiro:claude-opus-4.8
---
 docs/src/reference/the-traversal.asciidoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/src/reference/the-traversal.asciidoc 
b/docs/src/reference/the-traversal.asciidoc
index f536b490a8..ef3260a937 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -7456,11 +7456,11 @@ g.WithStrategies(new SubgraphStrategy(vertexProperties: 
HasNot("endTime")));
 ----
 [source,javascript]
 ----
-g.withStrategies(new SubgraphStrategy(vertexProperties: hasNot("endTime")));
+g.withStrategies(new SubgraphStrategy({vertexProperties: hasNot("endTime")}));
 ----
 [source,python]
 ----
-g.withStrategies(new SubgraphStrategy(vertexProperties=hasNot("endTime")))
+g.with_strategies(SubgraphStrategy(vertex_properties=hasNot("endTime")))
 ----
 
 IMPORTANT: This strategy is implemented such that the vertices attached to an 
`Edge` must both satisfy the vertex

Reply via email to