From: Joris K. <de...@gm...> - 2015-02-16 10:03:25
|
That depends on how you define an edge. You can just define a new type of "Labeled" edge. For an example, refer to: https://github.com/jgrapht/jgrapht/wiki/LabeledEdges br, Joris On Wed, Jan 28, 2015 at 3:50 PM, Yossi K <yo...@gm...> wrote: > 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 > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > > |