graph = new SingleGraph();
s = graph.addNode("s")
t = graph.addNode("t")
graph.addEdge("st", "s", "t", true);
The documentation states for getEdgeBetween that
"This method selects directed or undirected edges. If the edge is directed, its direction is not important and leaving or entering edges will be selected. "
However,
hasEdgeBetween/getEdgeBetween work fine when the edge goes toward the target :
Setup :
The documentation states for
getEdgeBetween
that "This method selects directed or undirected edges. If the edge is directed, its direction is not important and leaving or entering edges will be selected. "However, hasEdgeBetween/getEdgeBetween work fine when the edge goes toward the target :
but don't when the edge leaves the target :