본문 바로가기

PY(Python Image Processing)

The process of lasso guard becoming side mount

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