<｜begin▁of▁sentence｜>### Instruction:
As a dance instructor, I help students learn and perform dance routines with precision and artistry. In a similar way, if you have a graph with the edge set [(0, 1), (1, 2), (2, 0)], is there an API or built-in method in a library like NetworkX that can be used to obtain the incidence matrix?
### Response:
from igraph import Graph

# Create a graph
edges = [(0, 1), (1, 2), (2, 0)]
g = Graph(edges)

# Get the biadjacency (incidence) matrix
incidence_matrix = g.get_biadjacency()

# Print the incidence matrix
print(incidence_matrix)
<|EOT|>
