Re: [Neo] Graph Algos

2010-02-04 Thread Peter Neubauer
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  wrote:
> Hello,
>
> When I migrated from:
>
> 
>        org.neo4j
>        graph-algo
>        0.2-SNAPSHOT
> 
>
> to:
>
> 
>    org.neo4j
>    neo4j-graph-algo
>    0.3-SNAPSHOT
> 
>
> It gave me the following compilation errors:
>
> NeoQuery.java:[719,35] cannot find symbol
> symbol  : constructor
> SingleSourceShortestPathBFS(,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
> 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 nodeList = findPeopleByATopic(person,topic);
>
>        // Set up shortest path algorithm.
>        // Observe that we don't need to specify a start node.
>        SingleSourceShortestPath 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 betweennessCentrality;
>        betweennessCentrality = new BetweennessCentrality(
>            singleSourceShortestPath,
>            nodeSet);
>
>        System.out.println("after betweeness centrality constructor");
>
>        // Get centrality value for a node.
>        Double value = betweennessCentrality.getCentrality(person);
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] Graph Algos

2010-02-03 Thread Todd Stavish
Hello,

When I migrated from:


org.neo4j
graph-algo
0.2-SNAPSHOT


to:


org.neo4j
neo4j-graph-algo
0.3-SNAPSHOT


It gave me the following compilation errors:

NeoQuery.java:[719,35] cannot find symbol
symbol  : constructor
SingleSourceShortestPathBFS(,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
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 nodeList = findPeopleByATopic(person,topic);

// Set up shortest path algorithm.
// Observe that we don't need to specify a start node.
SingleSourceShortestPath 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 betweennessCentrality;
betweennessCentrality = new BetweennessCentrality(
singleSourceShortestPath,
nodeSet);

System.out.println("after betweeness centrality constructor");

// Get centrality value for a node.
Double value = betweennessCentrality.getCentrality(person);
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user