<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with vertices 0, 1, 2, 3 and edges (0, 1), (1, 0), (0, 2), what is the reciprocity of the graph calculated in both 'ratio' and 'default' modes?
### Response:
import igraph as ig

g = ig.Graph(directed=True)
g.add_vertices(4)
g.add_edges([(0, 1), (1, 0), (0, 2)])
reciprocity_ratio = g.reciprocity(mode='ratio', ignore_loops=False)
reciprocity_default = g.reciprocity(mode='default', ignore_loops=False)
print('Reciprocity (ratio mode):', reciprocity_ratio)
print('Reciprocity (default mode):', reciprocity_default)
<|EOT|>
