728x90
import networkx as nx
import matplotlib.pyplot as plt
# Graph 생성
G = nx.DiGraph()
# 노드 추가 (단계별)
G.add_node("Half Guard")
G.add_node("Underhook")
G.add_node("Head Positioning")
G.add_node("Coyote Guard Entry")
G.add_node("Coyote Guard Established")
# 간선 추가 (단계별 연결)
G.add_edges_from([
("Half Guard", "Underhook"),
("Underhook", "Head Positioning"),
("Head Positioning", "Coyote Guard Entry"),
("Coyote Guard Entry", "Coyote Guard Established")
])
# 그래프 시각화
plt.figure(figsize=(10, 6))
nx.draw_networkx(G, with_labels=True, node_size=3000, node_color="lightblue", font_size=10, font_weight="bold", arrowsize=20)
plt.title("Transition from Half Guard to Coyote Guard")
plt.show()

728x90
'PY(Python Image Processing)' 카테고리의 다른 글
| LLM evaluation test for gpt2 (0) | 2024.08.14 |
|---|---|
| The process of lasso guard becoming side mount (0) | 2024.08.14 |
| 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 |
| 파이썬 웹앱 버튼, 이미지 그리기 (python flask web-app create button, image draw) (0) | 2024.08.09 |