Skip to content

docs(kshortest): document the filter lambda for KSHORTEST - #1725

Draft
imilinovic wants to merge 1 commit into
release/3.13from
feat/kshortest-filter-lambda
Draft

docs(kshortest): document the filter lambda for KSHORTEST#1725
imilinovic wants to merge 1 commit into
release/3.13from
feat/kshortest-filter-lambda

Conversation

@imilinovic

Copy link
Copy Markdown
Contributor

Release note

KSHORTEST path expansion now accepts a filter lambda. Documents the (r, n | ...) syntax with runnable examples, and replaces the "No filter lambdas" limitation with the two that remain: KSHORTEST orders by hop count and takes no weight lambda, and the three-argument (r, n, p | ...) form is not supported.

Related product PRs

PRs from product repo this doc page is related to:
memgraph/memgraph#4559

Checklist:

  • Add appropriate milestone (current release cycle)
  • Add bugfix or feature label, based on the product PR type you're documenting
  • Make sure all relevant tech details are documented
  • Check all content with Grammarly
  • Perform a self-review of my code
  • The build passes locally
  • My changes generate no new warnings or errors

Notes for the reviewer:

  • The only KSHORTEST mention outside this page is the "K shortest paths" section of Cypher differences, which makes no claim about lambdas — checked, no edit needed.
  • Both new examples were run against a build of feat: support a filter lambda in KSHORTEST path expansion memgraph#4559 using the dataset already on the page: (r, n | n.name <> "B") leaves the single path A → C → E, and 2..4 |3 (r, n | n.name <> "D") leaves A → C → E and A → B → C → E.

Adds a "Constraining the expansion based on property values" section
mirroring the equivalent BFS/WSP/ASP sections, with examples that run
against the dataset already on the page.

Replaces the "No filter lambdas" limitation with the two that remain:
KSHORTEST orders by hop count and takes no weight lambda, and the
three-argument `(r, n, p | ...)` form is not supported.
@imilinovic imilinovic added this to the 3.13 milestone Aug 12, 2026
@imilinovic imilinovic added the feature Documentation related to a new product feature of feature update label Aug 12, 2026
@imilinovic imilinovic self-assigned this Aug 12, 2026
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview Aug 12, 2026 2:42pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Documentation related to a new product feature of feature update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant