Re: [Neo4j] Generic expansion?
org.neo4j.kernel.Traversal.expanderForAllTypes(); On Fri, May 20, 2011 at 4:53 PM, Marko Rodriguez wrote: > Hey, > > Yea. Thats what I'm looking for, but it doesn't seem to be part of the API? > .. ? > > I can only find StandardExpander (abstract) and OrderedByTypeExpander. > > Thoughts?, -- IM me if you wish. > Marko. > > On May 20, 2011, at 8:46 AM, Peter Neubauer wrote: > > > Marko, > > you could do an AllExpander(Direction.BOTH) or really any subclass of > > Expander, http://api.neo4j.org/current/org/neo4j/graphdb/Expander.html > > > > Does that help? > > > > Cheers, > > > > /peter neubauer > > > > GTalk: neubauer.peter > > Skype peter.neubauer > > Phone +46 704 106975 > > LinkedIn http://www.linkedin.com/in/neubauer > > Twitter http://twitter.com/peterneubauer > > > > http://www.neo4j.org - Your high performance graph > database. > > http://startupbootcamp.org/- Öresund - Innovation happens HERE. > > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > > > > > > On Fri, May 20, 2011 at 4:43 PM, Marko Rodriguez >wrote: > > > >> Hi, > >> > >> How do I do something like this: > >> > >> PathFinder finder = GraphAlgoFactory.shortestPath(new > >> OrderedByTypeExpander().add(DynamicRelationshipType.withName("knows")), > 6); > >> > >> ...but where I don't care about the RelationshipType taken (and I don't > >> want to enumerate all the types I have as I have 100's of types). > >> > >> Above, when I don't have "knows," it doesn't find any paths. > >> > >> Thanks, > >> Marko. > >> > >> http://markorodriguez.com > >> ___ > >> Neo4j mailing list > >> User@lists.neo4j.org > >> https://lists.neo4j.org/mailman/listinfo/user > >> > > ___ > > Neo4j mailing list > > User@lists.neo4j.org > > https://lists.neo4j.org/mailman/listinfo/user > > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Tobias Ivarsson Hacker, Neo Technology www.neotechnology.com Cellphone: +46 706 534857 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Generic expansion?
Hey, Yea. Thats what I'm looking for, but it doesn't seem to be part of the API? .. ? I can only find StandardExpander (abstract) and OrderedByTypeExpander. Thoughts?, -- IM me if you wish. Marko. On May 20, 2011, at 8:46 AM, Peter Neubauer wrote: > Marko, > you could do an AllExpander(Direction.BOTH) or really any subclass of > Expander, http://api.neo4j.org/current/org/neo4j/graphdb/Expander.html > > Does that help? > > Cheers, > > /peter neubauer > > GTalk: neubauer.peter > Skype peter.neubauer > Phone +46 704 106975 > LinkedIn http://www.linkedin.com/in/neubauer > Twitter http://twitter.com/peterneubauer > > http://www.neo4j.org - Your high performance graph database. > http://startupbootcamp.org/- Öresund - Innovation happens HERE. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > > > On Fri, May 20, 2011 at 4:43 PM, Marko Rodriguez wrote: > >> Hi, >> >> How do I do something like this: >> >> PathFinder finder = GraphAlgoFactory.shortestPath(new >> OrderedByTypeExpander().add(DynamicRelationshipType.withName("knows")), 6); >> >> ...but where I don't care about the RelationshipType taken (and I don't >> want to enumerate all the types I have as I have 100's of types). >> >> Above, when I don't have "knows," it doesn't find any paths. >> >> Thanks, >> Marko. >> >> http://markorodriguez.com >> ___ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Generic expansion?
Marko, you could do an AllExpander(Direction.BOTH) or really any subclass of Expander, http://api.neo4j.org/current/org/neo4j/graphdb/Expander.html Does that help? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/- Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Fri, May 20, 2011 at 4:43 PM, Marko Rodriguez wrote: > Hi, > > How do I do something like this: > >PathFinder finder = GraphAlgoFactory.shortestPath(new > OrderedByTypeExpander().add(DynamicRelationshipType.withName("knows")), 6); > > ...but where I don't care about the RelationshipType taken (and I don't > want to enumerate all the types I have as I have 100's of types). > > Above, when I don't have "knows," it doesn't find any paths. > > Thanks, > Marko. > > http://markorodriguez.com > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Generic expansion?
Hi, How do I do something like this: PathFinder finder = GraphAlgoFactory.shortestPath(new OrderedByTypeExpander().add(DynamicRelationshipType.withName("knows")), 6); ...but where I don't care about the RelationshipType taken (and I don't want to enumerate all the types I have as I have 100's of types). Above, when I don't have "knows," it doesn't find any paths. Thanks, Marko. http://markorodriguez.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user