Todd, this sounds like version clash. You are sending in an org.neo4j.api.core.Node from your application it seems, when the new version is moved to be compliant with Neo4j 1.0-RC1 which has moved the API to org.neo4j.graphdb.Node . Try upgrading the rest of your App to Neoj4 1.0 RC1 and things should work fine again...
Cheers, /peter neubauer COO and Sales, Neo Technology 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://gremlin.tinkerpop.com - The terminal to the Giant Global Graph. On Thu, Feb 4, 2010 at 6:07 AM, Todd Stavish <[email protected]> wrote: > Hello, > > When I migrated from: > > <dependency> > <groupId>org.neo4j</groupId> > <artifactId>graph-algo</artifactId> > <version>0.2-SNAPSHOT</version> > </dependency> > > to: > > <dependency> > <groupId>org.neo4j</groupId> > <artifactId>neo4j-graph-algo</artifactId> > <version>0.3-SNAPSHOT</version> > </dependency> > > It gave me the following compilation errors: > > NeoQuery.java:[719,35] cannot find symbol > symbol : constructor > SingleSourceShortestPathBFS(<nulltype>,org.neo4j.api.core.Direction,com.cisco.collectiveintelligence.RelationshipTypes) > location: class org.neo4j.graphalgo.shortestpath.SingleSourceShortestPathBFS > > NeoQuery.java:[736,44] getCentrality(org.neo4j.graphdb.Node) in > org.neo4j.graphalgo.centrality.ShortestPathBasedCentrality<java.lang.Double,java.lang.Integer> > cannot be applied to (org.neo4j.api.core.Node) > > > Looking in SVN, the constructor seems to be there, but getCentrality is gone? > > Thanks, > Todd > > > > > List<Node> nodeList = findPeopleByATopic(person,topic); > > // Set up shortest path algorithm. > // Observe that we don't need to specify a start node. > SingleSourceShortestPath<Integer> singleSourceShortestPath; > singleSourceShortestPath = new SingleSourceShortestPathBFS( > person, > Direction.BOTH, > RelationshipTypes.KNOWS); > > System.out.println("after single sorce shortest path"); > > // Set up betweenness centrality algorithm. > Set nodeSet = new HashSet(nodeList); > BetweennessCentrality<Integer> betweennessCentrality; > betweennessCentrality = new BetweennessCentrality<Integer>( > singleSourceShortestPath, > nodeSet); > > System.out.println("after betweeness centrality constructor"); > > // Get centrality value for a node. > Double value = betweennessCentrality.getCentrality(person); > _______________________________________________ > Neo mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

