<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edges [(0, 1), (1, 2), (0, 2), (2, 3)], how can you use the triad_census function in igraph to calculate and output the triad census of the graph?
### Response:
import igraph as ig

# Create a graph with some edges
g = ig.Graph(edges=[(0, 1), (1, 2), (0, 2), (2, 3)])

# Calculate the triad census of the graph
triad_census = g.triad_census()

# Output the result
print(triad_census)
<|EOT|>
