laysakura / trie-rs

Memory efficient trie (prefix tree) library based on LOUDS
https://crates.io/crates/trie-rs
Apache License 2.0
90 stars 11 forks source link

Getting direct children of a node #35

Open Chaoses-Ib opened 1 month ago

Chaoses-Ib commented 1 month ago

Is it possible to get the direct children of a node with trie-rs? I saw there are predictive_search() and postfix_search(), but they return all descendants and don't guarantee the order of the returned nodes.

ZakSingh commented 1 month ago

I would also be very interested in this feature!

j6k4m8 commented 3 weeks ago

@laysakura @shanecelis I could take a whack at this if you'd like a PR!

shanecelis commented 3 weeks ago

Please do.