<｜begin▁of▁sentence｜>### Instruction:
Given an adjacency matrix [[0, 1, 0], [1, 0, 1], [0, 1, 0]], can you use igraph's Graph.Adjacency method to create a directed graph from it and plot the result?
### Response:
import igraph as ig
import numpy as np

# Define the adjacency matrix
adj_matrix = np.array([[0, 1, 0],
                       [1, 0, 1],
                       [0, 1, 0]])

# Create a graph from the adjacency matrix
# The 'mode' decides how to interpret the adjacency matrix
# 'directed' creates a directed graph
graph = ig.Graph.Adjacency(adj_matrix.tolist(), mode='directed')

# Plot the graph
ig.plot(graph, bbox=(300, 300), margin=20, vertex_label=range(len(adj_matrix)))
<|EOT|>
