<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with edges (1, 2), (2, 3), (3, 1), and (2, 1), can you use the __repr__ method of DyadCensus to get a string representation of the dyadic relationships in the graph?
### Response:
import networkx as nx

# Create a directed graph
G = nx.DiGraph()

# Add some edges
G.add_edge(1, 2)
G.add_edge(2, 3)
G.add_edge(3, 1)
G.add_edge(2, 1)

# Compute dyad census
census = nx.algorithms.structuralholes.dyad_census(G)

# Print the string representation of the census
print(repr(census))
<|EOT|>
