Hi,
You can find a step by step tutorial for a similar hello world
example here:
http://www.sparsity-technologies.com/StartingGuide/Index.html
The FindObject method can be used to find the nodes if the strings
"hello" and "world" are unique ids:
http://www.sparsity-technologies.com/downloads/javadoc-java/html/com/sparsity/sparksee/gdb/Graph.html#findObject(int,%20com.sparsity.sparksee.gdb.Value)
Or you could use Select to find the nodes if you may want to find
several nodes with the "hello" or "world" value when the string is
not unique.
http://www.sparsity-technologies.com/downloads/javadoc-java/html/com/sparsity/sparksee/gdb/Graph.html#select(int,%20com.sparsity.sparksee.gdb.Condition,%20com.sparsity.sparksee.gdb.Value)
Once you have the two specific nodes that you wanted, you can use
FindEdge to get a single edge of a specific type that connects the two
nodes (if it exists) when you know that there is only one edge (or
you only want one of the possibly several edges of this type
connecting this two nodes).
http://www.sparsity-technologies.com/downloads/javadoc-java/html/com/sparsity/sparksee/gdb/Graph.html#findEdge(int,%20long,%20long)
You can also use Edges to get all the edges of a specific type
connecting the two nodes.
http://www.sparsity-technologies.com/downloads/javadoc-java/html/com/sparsity/sparksee/gdb/Graph.html#edges(int,%20long,%20long)
Best regards.
El dijous, 26 febrer de 2015 18:49:59 UTC+1, vikiyouvb va escriure: