Add impl to Note that finds outgoing links
kmaasrud opened this issue · comments
Knut Magnus Aasrud commented
This is already done during serialization:
links: note
.adjacencies
.iter()
.filter(|(_, edge)| matches!(edge, Edge::Connected(_)))
.map(|(id, _)| hex(id))
.collect::<Vec<String>>()
This should simply be added as a utility function on Note
.