def createGraph():
global colors, pos
# common.g=nx.DiGraph() # directed graph, instead of nx.Graph()
common.g = nx.Graph() # undirected, for oligopoly project
colors = {}
pos = {}
common.g_labels = {}
common.g_edge_labels = {} # copy the address of the labels of the edges
# setting Figure 1 (the switch of the control between Figure 1 and Figure 2
# is managed in oActions.py
if not common.IPython or common.graphicStatus == "PythonViaTerminal":
# the or is about ipython running in a terminal
plt.figure(1)
mngr1 = plt.get_current_fig_manager() # NB, after figure()
mngr1.window.wm_geometry("+650+0")
mngr1.set_window_title("Links Entrepreneurs - Workers")
# searching tools
graphicDisplayGlobalVarAndFunctions.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录