Your plugin should get the start and end node via the plugin API: http://docs.neo4j.org/chunked/snapshot/server-plugins.html (see the GetAll.java example).
And then execute something like this (from DatabaseActions.traverse()). using: TraverserReturnType.FullPath public ListRepresentation traverse( long startNode, Map<String, Object> description, TraverserReturnType returnType ) { Node node = graphDb.getNodeById( startNode ); List<Representation> result = new ArrayList<Representation>(); TraversalDescription traversalDescription = TraversalDescriptionBuilder.from( description ); for ( Path position : traversalDescription.traverse( node ) ) { MappingRepresentation representation = returnType.toRepresentation( position ); if ( representation != null ) { result.add( representation ); } } return new ListRepresentation( returnType.repType, result ); } HTH Michael Am 19.11.2011 um 17:53 schrieb Shireesh: > Hi All, > > I am new to neo4j and been trying to use server plugin. > > Iam working on getting all paths between two nodes using GraphAlgoFactory > getAllPaths. > > The problem is i need the same response as we get when using Neo4j server > api Traversal "fullpath". > /fullpath - contains full representations of all nodes and relationships/ > > > Thankz in advance. > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-plugin-tp3521193p3521193.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.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