铁路网络图
您是否知道互联网上的一些图形库(铁路网络图),我可以用它来进行模拟?它不一定是图形化的,但可以。我正在寻找真实(几乎真实)的铁路网络图。图表应包含地点之间的距离。我想在 Java SE 中使用这些图。
Do you know about some library of graphs (railway network graphs) on the Internet, which I can use for simulating? It don't have to be graphical, but it could. I am looking for real (almost real) graphs of railway network. Graphs should contain distances between places. I would like to use these graphs in Java SE.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 OpenStreetMaps 中的数据。它以 xml 格式存储。只需下载某些地区的 *.osm 文件并仅选择铁路即可。铁路在 xml 中具有类型“way”和属性“railway”=“rail”。
以下是此类数据的示例:
upd
按地区分隔的地图数据可在http:// downloads.cloudmade.com/
You can use data from OpenStreetMaps. It is stored in xml format. Just download *.osm file of some region and select only railways. Railways have type "way" in xml and attributes "railway"="rail".
Here is an example of such data:
upd
Map data sepparated by regions is available at http://downloads.cloudmade.com/
检查JUNG。除了出色的图形选项之外,它还捆绑了一系列算法来查找加权和未加权的最短路径。您甚至可以计算图中边具有容量的最大流量。
Check JUNG. Beside excellent graphics options, it is bundled with a bunch of algorithms to find weighted and unweighted shortest paths. You can even calculate the maximum flow in a graph where the edges have a capacity.