def graphD3(self, buds_visible = False, filter_assym_edges = False):
# possibly combine with above?
self.buds_visible = buds_visible
self.filter_assym_edges = filter_assym_edges
G = self.makeGraphData(mode = "d3")
# print G
if hasattr(self, 'nodeColorInfo'):
G = self.useColorData(G, "d3")
# for item in adjList:
# print item
#nodeColors = self.useColorData(G)
#for item in nx.readwrite.__dict__:
#print item
# nodeLinkData = nx.readwrite.d3_js(G)
#print G
json.dump(G, open('forceD3/force.json','w'))
self.basicWebServer()
评论列表
文章目录