[jgrapht-users] Edge identity
Brought to you by:
barak_naveh,
perfecthash
From: Yossi K <yo...@gm...> - 2015-01-28 14:50:07
|
Hello, AbstractBaseGraph.containsEdge() checks whetehr edgeMap contains the edge in its key set. public boolean containsEdge(E e) { return edgeMap.containsKey(e); } When the edges are strings, this test makes it impossible for a graph to have two edges with the same label. For example, when the edges are words in a sentence and one of the words appears more than once. Doesn't the identity of an edge include its start and end vertices as well? Thanks, Y |