graph.py 文件源码

python
阅读 57 收藏 0 点赞 0 评论 0

项目:graph 作者: Gretter74 项目源码 文件源码
def graphFromDB(c, g):


    for row in c.execute ("SELECT * FROM node"):
        print (row[1])
        g.add_node(row)



    'Constructs a graph from DB data.'
    'Initialize Graph.'
    'Retrieve Nodes.'
    'For each node, insert it in graph.'

    'Possibly edges should be inserted in the same loop.'




#c.close()
#GUI

#Main loop.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号