Leiden treemap, insights pane, and Arrow loader hardening - #3
Merged
Merged
Conversation
- Treemap view over Leiden communities (in-process icebug Leiden, same family as GDS_LEIDEN) with squarified layout after disktree, PageRank-weighted tiles; header toggle switches graph/treemap - Collapsible right insights pane: top 10 nodes by PageRank plus the Leiden community summary; rows focus/select into the graph - backend: graphr_leiden_full, gds_leiden_communities readout, tests/gds_leiden.rs port of the extension's gds_leiden.test - loader: tiered CSR -> columnar Arrow -> row-wise id scans so a silent-empty fast path can never show 0 nodes; pin arrow to 55 to match lbug (arrow56 alias for the icebug arrays); tests/loader.rs plus an arrow-pin unit test locking the batch decode shape
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Treemap + insights pane
GDS_LEIDEN), squarified layout after disktree, tiles weighted by PageRank. Header Graph | Treemap toggle (⌘1/⌘2, View menu). Click selects, double-click drills into the 1-hop neighborhood. (Sunburst deliberately skipped — arc-heavy painting needs more GPUI scaffolding than rects.)⌘I, chevron divider, View menu): top 10 nodes by PageRank over the displayed graph + Leiden community summary with modularity. PageRank rows focus the neighborhood; community rows select and jump to the treemap.backend::graphr_leiden_full,backend::gds_leiden_communitiesreadout, andtests/gds_leiden.rsporting the extension'sgds_leiden.test(two cliques + bridge, gamma/bogus-param errors) with a no-extension local cross-check.Loader hardening (fixes "0 nodes" on transformers.lbdb)
downcast_refsilently decoded zero rows; plus some storage versions reportOkwith empty CSR arrays.collect_edge_graphis now tiered CSR → columnar Arrow → row-wise ids, each tier declining on error or empty success, so a silent-empty fast path can never hide the graph.arrowpinned to 55 to match lbug 0.21.x (single unified build); icebug 13.2.0's arrow-56 arrays live behind thearrow56alias.tests/loader.rscontract tests (exact counts, no dangling endpoints, empty-DB case) + abackendunit test locking the lbug batch decode shape against future arrow/field drift.Verification
transformers.lbdbloads 1440 nodes / 6285 edges via the Arrow tier.clippy0 warnings,fmtclean.