<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph (DiGraph) with edges forming a triad [(1, 2), (2, 3), (3, 1)], what is the sociological triad type of the triad according to NetworkX?
### Response:
import networkx as nx

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

# Add edges to form a triad
G.add_edges_from([(1, 2), (2, 3), (3, 1)])

# Get the sociological triad type
triad = nx.triad_type(G)

print(f'The triad type is: {triad}')
<|EOT|>
