如何在Python语言中巧妙地表示graph (https://en.wikipedia.org/wiki/Python_(programming_language%29)?(从头开始,即没有库!)
什么样的数据结构(例如dicts/tuples/dict(tuples))既快又能节省内存?
一个人必须能够在它上做各种图形operations。
正如所指出的,各种graph representations可能会有所帮助。如何在Python中实现它们?
至于库,this question有非常好的答案。
https://stackoverflow.com/questions/19472530
复制相似问题