I want to represent my city's road network in geotool's graph object. Since
road network is hybrid, it has one way roads and two ways roads. I cannot
find a graph generator that allows to generate directed and undirected
edges in same graph. There are graph generators for all directed or all
undirected edges. So what is the most efficient way of representing road
network in geotool's graph object. Directivity is important for me because
I have to run routing algorithms, plus adding two edges (in both
directions) for two roads is not efficient solution as most roads are two
way. Other option is to use undirected edges for all roads and using a
Map<Pair<node_id1,
node_id2>,boolean> that tells which ways you can traverse the edge like two
way or one way.

I posted this question on stackoverflow:
http://stackoverflow.com/questions/26044947/how-to-represent-bidirectional-edge-using-directedlinestringgraphgenerator-in-ge

Regards,
Haider
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to