Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pdumin committed Aug 9, 2024
1 parent 9477810 commit 0554994
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions functions/adj_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,3 @@ def create_adjacency_matrix(edges):
adj_matrix.iloc[i, j] = str(weight+"_{" + f'{lambda_index}' + "}")

return adj_matrix, vertices

# Входной текст
text = """
A-- 0.5 -->B;
A-- 0.5 -->C;
B-- 0.5 -->D;
B-- 0.5 -->E;
C-- 0.5 -->E;
C-- 0.5 -->D;
D-- 0.5 -->F;
D-- 0.5 -->G;
E-- 0.5 -->G;
E-- 0.5 -->F;
"""

# # Парсинг рёбер
# edges = parse_edges(text)

# # Создание матрицы смежности
# adj_matrix, vertices = create_adjacency_matrix

0 comments on commit 0554994

Please sign in to comment.