什么是保存图形的更好方法 [英] what should be the better way to save a graph

查看:77
本文介绍了什么是保存图形的更好方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应将图形保存在数据库还是xml中.

graph是用于查找最短路径的网络图.

should i save graph in database or in xml.

graph is network graph that is used to find shortest path.

推荐答案

这将取决于您需要处理的信息.例如,如果您希望数据可供多个用户使用,那么使用数据库就可以了.如果它是单个用户,并且网络图是您唯一存储的东西,那么XML可能是最好的.

还有一个足迹:XML是一个很大的文本文件,但是在小的支持环境中,DB则相反. XML支持不需要额外的安装,DB则需要.等等等!

恐怕这取决于您的数据和情况.
That would depend on what you need to do with the info. For example, if you want the data available to multiple users, then a DB is the way to go. If it is a single user, and the net graph is the only thing you store, then XML may be the best.

There is also the footprint: XML is a large(ish) text file, but small support environment, DB would be the other way around. XML support requires no extra intallation, DB does. Etc., etc., etc.!

It will depend on your data and circumstances, I''m afraid.


这篇关于什么是保存图形的更好方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆