I've got function which has this signature:
public void doTheJob(String from, Collection<Pair<String, String>> relations)
where:
from
is a unique value the graph should be asked about
relations
is a collection of pair, where first element from pair is edge label
and the second is similar to from
but it designates the second side of the relation. Eg ( assuming that andy, dog are unique ):
"andy" ["has,dog", "has,cat", "is,person"]
I would like to add these edges between these vertices ( they are already existing in graph, i would like to query them and create edges between them ). The requirement I've got is to prepare this in one traversal.
Thanks!