<｜begin▁of▁sentence｜>### Instruction:
As a digital artist working on a multimedia project, you're tasked with visualizing the connections between characters in a story. You've represented these connections as a directed graph, where each edge indicates a relationship between two characters. Now, you want to analyze the reciprocity of these relationships, essentially determining the proportion of mutual connections among characters.

To achieve this, you're considering leveraging the `reciprocity` function provided by the igraph API. With this function, you aim to compute the proportion of mutual connections in your graph, offering valuable insights into the interplay between characters in your narrative.
### Response:
import igraph as ig

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

# Calculate the reciprocity
reciprocity_value = g.reciprocity()
print('Reciprocity of the graph:', reciprocity_value)
<|EOT|>
