| 
1 | 1 | # Max Base  | 
2 | 2 | # https://github.com/BaseMax/PhdMathProject  | 
3 | 3 | import string  | 
 | 4 | +from builtins import range  | 
 | 5 | +from tkinter import *  | 
 | 6 | +from tkinter import ttk  | 
 | 7 | +import matplotlib.pyplot as plt  | 
 | 8 | +import networkx as nx  | 
4 | 9 | import sys  | 
5 |  | -# x = int(e1.get())  | 
6 |  | -# assert x >= 0  | 
7 |  | -# if x == 0:  | 
8 |  | -# 	return [[0]]  | 
9 |  | -# binary = []  | 
10 |  | -# while x != 0:  | 
11 |  | -# 	temp = [0, 0, 0]  | 
12 |  | -# 	for k in range(3):  | 
13 |  | -# 		temp[k] = ((x % 10) // (2 ** (2 - k))) % 2  | 
14 |  | -# 	binary.append(temp.copy())  | 
15 |  | -# 	x = x // 10  | 
16 |  | -# binary.reverse()  | 
17 |  | -# data = (binary)  | 
 | 10 | + | 
18 | 11 | data=[  | 
19 | 12 | 	[0,1,1],  | 
20 | 13 | 	[1,0,0],  | 
 | 
103 | 96 | 
 
  | 
104 | 97 | line_edges=[]  | 
105 | 98 | dashed_edges=[]  | 
 | 99 | +all_edges=[]  | 
106 | 100 | 
 
  | 
107 | 101 | for x in range(len(clearformulas)):  | 
 | 102 | +	isEmpty=False  | 
108 | 103 | 	if len(clearformulas[x]) == 1:  | 
 | 104 | +		isEmpty=True  | 
 | 105 | +		# continue  | 
109 | 106 | 		clearformulas[x].append(clearformulas[x][0])  | 
110 | 107 | 	clearformulas[x]= ( clearformulas[x][0] , clearformulas[x][1])  | 
111 | 108 | 	isDash=False  | 
 | 
118 | 115 | 		dashed_edges.append(selectedValue)  | 
119 | 116 | 	else:  | 
120 | 117 | 		line_edges.append(selectedValue)  | 
 | 118 | +	# if len(selectedValue) > 1:  | 
 | 119 | +	if not isEmpty:  | 
 | 120 | +		all_edges.append(selectedValue)  | 
121 | 121 | 
 
  | 
122 | 122 | print("Add bordertype to clearformulas: ", clearformulas)  | 
123 | 123 | 
 
  | 
@@ -162,7 +162,12 @@ def toChild(value):  | 
162 | 162 | # dashed_edges=[(1,2), (1,2)]  | 
163 | 163 | # dashed_edges=[(1,2), (1,3), (1,4)]  | 
164 | 164 | 
 
  | 
165 |  | -print("grapsDashed: ", dashed_edges)  | 
 | 165 | +print("grapsDashed: ", grapsDashed)  | 
166 | 166 | 
 
  | 
167 | 167 | # use grapsLine  | 
168 | 168 | # use grapsDashed  | 
 | 169 | + | 
 | 170 | +def showgraph(edges, grapsLine, grapsDashed):  | 
 | 171 | +	pass  | 
 | 172 | + | 
 | 173 | +showgraph(all_edges, grapsLine, grapsDashed)  | 
0 commit comments