Skip to content

refactor: replace convert_to_full_spatial_network with file-local helper#131

Merged
jiajic merged 1 commit into
giotto-suite:gsourcefrom
jiajic:gsource
May 22, 2026
Merged

refactor: replace convert_to_full_spatial_network with file-local helper#131
jiajic merged 1 commit into
giotto-suite:gsourcefrom
jiajic:gsource

Conversation

@jiajic

@jiajic jiajic commented May 22, 2026

Copy link
Copy Markdown
Collaborator

GiottoClass 0.6.0 removed convert_to_full_spatial_network(). The three viz_spatial_network.R consumers all needed the same operation: bidirectionalize canonical (from, to) edges into (source, target) form and compute rank_int (rank by distance, per source) for plotting k-neighbor distance distributions and Delaunay network statistics.

Adds .full_with_rank() at the top of the file (3 sites → small local helper rather than 3 inline copies). rank_int is computed JIT because any topology mutation (induced_subgraph, external filtering) would invalidate a stored value — same semantics as the old helper, which also recomputed every call.

GiottoClass 0.6.0 removed convert_to_full_spatial_network(). The three
viz_spatial_network.R consumers all needed the same operation:
bidirectionalize canonical (from, to) edges into (source, target) form
and compute rank_int (rank by distance, per source) for plotting
k-neighbor distance distributions and Delaunay network statistics.

Adds .full_with_rank() at the top of the file (3 sites → small local
helper rather than 3 inline copies). rank_int is computed JIT because
any topology mutation (induced_subgraph, external filtering) would
invalidate a stored value — same semantics as the old helper, which
also recomputed every call.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jiajic jiajic merged commit 8222bac into giotto-suite:gsource May 22, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant