728x90
import networkx as nx
import matplotlib.pyplot as plt
# Graph 생성
G = nx.DiGraph()
# 노드 추가 (단계별)
G.add_node("Lasso Guard")
G.add_node("Lasso Sweep Setup")
G.add_node("Lasso Sweep Execution")
G.add_node("Opponent Off-Balance")
G.add_node("Transition to Side Mount")
G.add_node("Side Mount Control")
# 간선 추가 (단계별 연결)
G.add_edges_from([
("Lasso Guard", "Lasso Sweep Setup"),
("Lasso Sweep Setup", "Lasso Sweep Execution"),
("Lasso Sweep Execution", "Opponent Off-Balance"),
("Opponent Off-Balance", "Transition to Side Mount"),
("Transition to Side Mount", "Side Mount Control")
])
# 그래프 시각화
plt.figure(figsize=(10, 6))
nx.draw_networkx(G, with_labels=True, node_size=3000, node_color="lightgreen", font_size=10, font_weight="bold", arrowsize=20)
plt.title("Transition from Lasso Guard to Side Mount")
plt.show()

728x90
'PY(Python Image Processing)' 카테고리의 다른 글
| LLM Summary prompt test to facebook/bart-large-cnn (0) | 2024.08.14 |
|---|---|
| LLM evaluation test for gpt2 (0) | 2024.08.14 |
| The process of half guard becoming coyote guard (0) | 2024.08.13 |
| python web app puzzle game ( crop image, flask, pillow ) (0) | 2024.08.12 |
| python webapp test meidiapipe csv flask pillow opencv (0) | 2024.08.10 |