Re: [jgrapht-users] ListenableDirectedMultigraph constructor
Brought to you by:
barak_naveh,
perfecthash
From: John S. <js...@gm...> - 2011-03-17 04:53:44
|
I think you can just use the existing ListenableDirectedGraph wrapped around the existing DirectedMultigraph, no? JVS On Wed, Mar 16, 2011 at 7:51 AM, <jl...@ol...> wrote: > I have written a new edge class called TransitionEdge that extends > DefaultEdge. I want to use JGraph to visualize my graph but I am > having trouble writing a constructor for a > ListenableDirectedMultigraph that allows me to use the TransitionEdge > class...any suggestions? > > private static class ListenableDirectedMultigraph<V, E> > extends DefaultListenableGraph<V, E> > implements DirectedGraph<V, E> > { > private static final long serialVersionUID = 1L; > > > ListenableDirectedMultigraph(Class<? extends E> > classBasedEdgeFactory) > { > super(new DirectedMultigraph<V, > E>(classBasedEdgeFactory)); > } > > > public ListenableDirectedMultigraph(ClassBasedEdgeFactory<String, > TransitionEdge> classBasedEdgeFactory) { > super(??); > } > > > } > > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > |