<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with nodes A, B, and C, and directed edges from A to B, B to C, and C to A, can you visualize the graph using matplotlib to draw the nodes and directed edges?
### Response:
import networkx as nx
import matplotlib.pyplot as plt

# Creating a networkx graph
G = nx.DiGraph()

# Add some edges (for example)
G.add_edge('A', 'B')
G.add_edge('B', 'C')
G.add_edge('C', 'A')

# Draw the graph
nx.draw(G, with_labels=True, arrowstyle='-|>', arrowsize=20)
plt.show()
<|EOT|>
