Skip to content

Commit 541f26b

Browse files
author
Max Base
authored
Update process.py
1 parent ed4e96f commit 541f26b

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

process.py

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
# Max Base
22
# https://github.com/BaseMax/PhdMathProject
33
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
49
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+
1811
data=[
1912
[0,1,1],
2013
[1,0,0],
@@ -103,9 +96,13 @@
10396

10497
line_edges=[]
10598
dashed_edges=[]
99+
all_edges=[]
106100

107101
for x in range(len(clearformulas)):
102+
isEmpty=False
108103
if len(clearformulas[x]) == 1:
104+
isEmpty=True
105+
# continue
109106
clearformulas[x].append(clearformulas[x][0])
110107
clearformulas[x]= ( clearformulas[x][0] , clearformulas[x][1])
111108
isDash=False
@@ -118,6 +115,9 @@
118115
dashed_edges.append(selectedValue)
119116
else:
120117
line_edges.append(selectedValue)
118+
# if len(selectedValue) > 1:
119+
if not isEmpty:
120+
all_edges.append(selectedValue)
121121

122122
print("Add bordertype to clearformulas: ", clearformulas)
123123

@@ -162,7 +162,12 @@ def toChild(value):
162162
# dashed_edges=[(1,2), (1,2)]
163163
# dashed_edges=[(1,2), (1,3), (1,4)]
164164

165-
print("grapsDashed: ", dashed_edges)
165+
print("grapsDashed: ", grapsDashed)
166166

167167
# use grapsLine
168168
# use grapsDashed
169+
170+
def showgraph(edges, grapsLine, grapsDashed):
171+
pass
172+
173+
showgraph(all_edges, grapsLine, grapsDashed)

0 commit comments

Comments
 (0)