Re: [jgrapht-users] JGraphT
Brought to you by:
barak_naveh,
perfecthash
From: John V. S. <js...@gm...> - 2006-08-10 09:00:35
|
Kevin Green wrote: > Hi, I'm working on a summer research project and we are using JGraph and > JGraphT the thing we have now come across is that we would like to change from > not allowing multiple edges to allowing multiple edges. The thing is we are > currently using ListenableDirectedGraph which does not allow multiple edges > between the same two vetices. Also, I'm not sure exactly how to implement the > ListenableGraph with the DirectedMultigraph. Basically we need the missing > class ListenableDirectedMultigraph and I was wondering if someone may have > written this already or if I could get some help to write it. Thanks. (Please mail to the list so that others will be able to find answers to similar questions later.) The only thing special that DirectedMultigraph does is super(ef, true, true). The extra parameters set allowMultipleEdges=true and allowLoops=true. So you just need to do the same in your ListenableDirectedMultigraph constructor, which should extend DefaultListenableGraph and implement DirectedGraph (just copy ListenableDirectedGraph). JVS |