Re: [jgrapht-users] Change Edge Labels
Brought to you by:
barak_naveh,
perfecthash
From: Randall R S. <rs...@so...> - 2008-12-29 22:14:56
|
On Monday 29 December 2008 13:21, fa...@gm... wrote: > Hi > Is there a way to change the edge labels? > > I create my graph like in the JGraphAdapter Demo: > > ListenableGraph<String, DefaultEdge> g = > > new ListenableDirectedMultigraph<String, DefaultEdge>( > > DefaultEdge.class); > > > > ... Interesting. Somehow, I never even noticed DefaultEdge. I've just always written my own Edge implementations. So at least one answer would be: Implement your own Edge and give it whatever attributes and methods you need. > regards > daniel Randall Schulz |