Skip to content

Commit 84cb84c

Browse files
lmeyerovclaude
andcommitted
refactor: move same_path_*.py to graphistry/compute/gfql/
Move same-path related files to be co-located with df_executor: - graphistry/gfql/same_path_plan.py -> graphistry/compute/gfql/same_path_plan.py - graphistry/gfql/same_path_types.py -> graphistry/compute/gfql/same_path_types.py Updates all imports across codebase (14 files). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 09a4031 commit 84cb84c

15 files changed

Lines changed: 16 additions & 16 deletions

graphistry/compute/chain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .typing import DataFrameT
1313
from .util import generate_safe_column_name
1414
from graphistry.compute.validate.validate_schema import validate_chain_schema
15-
from graphistry.gfql.same_path_types import (
15+
from graphistry.compute.gfql.same_path_types import (
1616
WhereComparison,
1717
parse_where_json,
1818
where_to_json,

graphistry/compute/gfql/df_executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from graphistry.Plottable import Plottable
2020
from graphistry.compute.ast import ASTCall, ASTEdge, ASTNode, ASTObject
2121
from graphistry.gfql.ref.enumerator import OracleCaps, OracleResult, enumerate_chain
22-
from graphistry.gfql.same_path_plan import SamePathPlan, plan_same_path
23-
from graphistry.gfql.same_path_types import WhereComparison
22+
from graphistry.compute.gfql.same_path_plan import SamePathPlan, plan_same_path
23+
from graphistry.compute.gfql.same_path_types import WhereComparison
2424
from graphistry.compute.typing import DataFrameT
2525

2626
AliasKind = Literal["node", "edge"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from dataclasses import dataclass, field
66
from typing import Dict, Optional, Sequence, Set
77

8-
from graphistry.gfql.same_path_types import WhereComparison
8+
from graphistry.compute.gfql.same_path_types import WhereComparison
99

1010

1111
@dataclass
File renamed without changes.

graphistry/compute/gfql_unified.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
QueryType,
1818
expand_policy
1919
)
20-
from graphistry.gfql.same_path_types import parse_where_json
20+
from graphistry.compute.gfql.same_path_types import parse_where_json
2121
from graphistry.compute.gfql.df_executor import (
2222
build_same_path_inputs,
2323
execute_same_path_chain,

graphistry/gfql/ref/enumerator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from graphistry.compute.ast import ASTEdge, ASTNode, ASTObject
1818
from graphistry.compute.chain import Chain
1919
from graphistry.compute.filter_by_dict import filter_by_dict
20-
from graphistry.gfql.same_path_types import ComparisonOp, WhereComparison
20+
from graphistry.compute.gfql.same_path_types import ComparisonOp, WhereComparison
2121

2222

2323
@dataclass(frozen=True)

graphistry/tests/compute/test_chain_where.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from graphistry.compute import n, e_forward
44
from graphistry.compute.chain import Chain
5-
from graphistry.gfql.same_path_types import col, compare
5+
from graphistry.compute.gfql.same_path_types import col, compare
66
from graphistry.tests.test_compute import CGFull
77

88

tests/gfql/ref/cprofile_df_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import graphistry
1414
from graphistry.compute.ast import n, e_forward
15-
from graphistry.gfql.same_path_types import col, compare, where_to_json
15+
from graphistry.compute.gfql.same_path_types import col, compare, where_to_json
1616

1717

1818
def make_graph(n_nodes: int, n_edges: int) -> Tuple[pd.DataFrame, pd.DataFrame]:

tests/gfql/ref/profile_df_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Import the executor and test utilities
1515
import graphistry
1616
from graphistry.compute.ast import n, e_forward, e_reverse, e_undirected
17-
from graphistry.gfql.same_path_types import WhereComparison, StepColumnRef, col, compare, where_to_json
17+
from graphistry.compute.gfql.same_path_types import WhereComparison, StepColumnRef, col, compare, where_to_json
1818

1919

2020
@dataclass

tests/gfql/ref/test_df_executor_amplify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from graphistry.Engine import Engine
66
from graphistry.compute import n, e_forward, e_reverse, e_undirected, is_in
77
from graphistry.compute.gfql.df_executor import execute_same_path_chain
8-
from graphistry.gfql.same_path_types import col, compare
8+
from graphistry.compute.gfql.same_path_types import col, compare
99
from graphistry.tests.test_compute import CGFull
1010

1111
# Import shared helpers - pytest auto-loads conftest.py

0 commit comments

Comments
 (0)