Skip to content

Allow including BFS start node with *bfs 0.. #3376

@WCWedin

Description

@WCWedin

As far as I can tell, there's no way for a BFS search to include the start node in the captured set. For instance, -[*bfs 0]- will never capture any nodes, since BFS always excludes the start node. While this example is obviously artificial, real use would be more like -[:NEXT*bfs 0..]-, which currently behaves identically to *bfs 1...

Would it be feasible to support using *bfs 0 to include the start node in the searched set? The behavior of certain queries would be affected (those counting on *bfs 0.. to act instead like *bfs 1..), but maybe *bfs 0 not being particularly meaningful makes it less likely to appear in the wild.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions