[jgrapht-users] Maps as graphs
Brought to you by:
barak_naveh,
perfecthash
From: Richard M. <ric...@ho...> - 2007-01-23 20:28:50
|
Hi, I'm interested in modelling a map of a city as a JGraphT graph. I've had reasonable success so far, using custom objects at nodes to represent junctions, etc. I'd like to be able to associate names with edges, in order to implement street names. I've tried extending DefaultWeightedEdge, with a new object, but this doesn't seem to work. Has anyone got any experience with this, or suggestions how this may be done, without recourse to a secondary data structure to lookup edge names? Many thanks, Richard Moore _________________________________________________________________ Get Hotmail, News, Sport and Entertainment from MSN on your mobile. http://www.msn.txt4content.com/ |