Re: [jgrapht-users] Weighted graphs
Brought to you by:
barak_naveh,
perfecthash
From: Fabian K <fab...@gm...> - 2010-06-12 14:51:31
|
my graph class: public class GRFGraph extends DefaultDirectedWeightedGraph<GRFNode, GRFEdge> my Edge class: public class GRFEdge extends DefaultWeightedEdge following method doesn't work anymore, it returns null. GRFNode srcNode = graph.getEdgeTarget(new GRFEdge(1)); when my GRFEdge doesnt extend DefaultWeightedEdge it works fine. It will return the node. What is wrong with this call? FYI: in my GRFEdge class I override getWeight method already. @Override public double getWeight() { return weight; } -- View this message in context: http://jgrapht-users.107614.n3.nabble.com/Weighted-graphs-tp107885p890947.html Sent from the jgrapht-users mailing list archive at Nabble.com. |