You probably would use a custom relationship-expander that takes your prerequisites into account and at each level uses a different rel-type.
I only don't understand where you do the switch between one type and when you start selecting the next? Only if there is none of the previous left?? I think there was something similar in the API already somewhere in general you have something like List<RelationshipType> types = Arrays.asList(BUS, TRAIN, BUS, SUBWAY) and then in the expander body use RelationshipType type = types.get(path.length()); return path.endNode().getRelationships(type); Michael Am 18.08.2014 um 23:55 schrieb Oscar Niemi <[email protected]>: > Hi! > > Imagine a city with bus stops, subway stops and train stops. Is it possible > to write a traversal question, or more specific I guess an evaluator that > follow a specific pattern. For an example lets say I want to first go with > bus(1 or more stops), then train(1 or more stops), then bus again(1 or more > stops) and finally subway(1 or more stops) to reach my destination. Ofcourse > it will generate lots of different paths but that's also the whole point. > > /Best Regards Oscar > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
