master > master: code py - Tarjan / Tabellenspalten umgetauscht
This commit is contained in:
parent
c0bc69450c
commit
670fd1b73e
@ -179,14 +179,15 @@ class Context(ContextDefault):
|
||||
|
||||
def repr(self) -> str:
|
||||
table = pd.DataFrame([ self.infos[u] for u in self.finished ]) \
|
||||
.drop(columns='state')
|
||||
.drop(columns='state');
|
||||
table = table[['node', 'index', 'least_index']];
|
||||
# benutze pandas-Dataframe + tabulate, um schöner darzustellen:
|
||||
repr = tabulate(
|
||||
table,
|
||||
headers = {
|
||||
'Knoten': 'node',
|
||||
'kleinster Idx': 'least_index',
|
||||
'Index': 'index',
|
||||
'Idx': 'index',
|
||||
'min. Idx': 'least_index',
|
||||
},
|
||||
showindex = False,
|
||||
stralign = 'center',
|
||||
|
Loading…
x
Reference in New Issue
Block a user