Hello glilienfield, thanks a lot for the answer, however it seems like i got the question wrong.
so basically im looking for a way to Find all paths until a node of certain label.
let us say we have the following connectivity
A1>B1>B2>A2>B6>A6A1>A4>A...