Skip to content
Snippets Groups Projects
Commit 7dd5dc15 authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

test parameter weight

parent 27daff67
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class GraphGenerator:
G[u][v]["weight"] = 1.0 # Default pull
# Generate positions with spring layout using weights
positions = nx.spring_layout(G, scale=scale, weight='weight', k=scale, pos=None)
positions = nx.spring_layout(G, scale=scale, weight="weight")
# Convert positions to integers for GNS3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment