master > master: code py - Tarjan / Tabellenspalten umgetauscht

This commit is contained in:
RD 2022-06-10 16:38:42 +02:00
parent c0bc69450c
commit 670fd1b73e
1 changed files with 4 additions and 3 deletions

View File

@ -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',