Hi everybody, I have a FeatureCollection loaded from a shapefile and create an undirected Graph out of it, using the code provided in:
http://docs.geotools.org/stable/userguide.old/extension/graph/index.html <http://docs.geotools.org/stable/userguide.old/extension/graph/index.html> To investigate if my Graph is connected I use a DijkstraShortestPathFinder as shown in the same link to fetch a path to each other node from a hand-picked start node. At the same time I can confirm that all nodes in my Graph have been visited. The structure of my data though is so that some features can only be traversed in one direction and for the DijkstraShortestPathFinder to fetch reasonable results I need to create a directed Graph from my FeatureCollection based on an attribute value in each feature. Is there any example to provide as help on how to create a directed graph? Thanks, Thomas -- View this message in context: http://osgeo-org.1560.x6.nabble.com/DirectedGraph-from-SimpleFeatureCollection-based-on-attribute-tp5315440.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users