Re: [jgrapht-developers] Question about DefaultWeightedEdge
Brought to you by:
barak_naveh,
perfecthash
From: Christian S. <cso...@gm...> - 2007-11-07 16:18:34
|
Hi Ulrich, have a look at the graph object your edges belong to. It has methods getEdgeSource and getEdgeTarget. Cheers, Chris Ulrich Voigt schrieb: > Hi, > > I have just started to work with JGraphT and I am quite happy with it! > > But I have some questions about the implementation of the DefaultWeightedEdge class. > The IntrusiveEdge class contains the source and the target of the edge. But classes that override it (e.g. DefaultWeightedEdge) do not have access to these fields? Why? > > In my case I want to subclass the DefaultWeightedEdge class to store the properties of a logical network connection. For this case I would like to have the information about the source and the target. At the moment I would have to define my own source and target fields and I don't like that :-) > > Thanks for your answers! > > Uli |