<｜begin▁of▁sentence｜>### Instruction:
As a behavioral economist, imagine you are studying the interaction patterns within a social network. Two pairs of individuals, Mark and Sarah, and John and Emily, have been identified as having particularly strong connections. How would you apply the "as_directed" function in the NetworkX library to analyze the directional flow of influence within this social network?
### Response:
from igraph import Graph

# Create a simple undirected graph with edges A-B and C-D
g = Graph.Formula('A--B, C--D')
# Convert the undirected graph to a directed graph
directed_g = g.as_directed()

print(directed_g)
print(directed_g.is_directed())
<|EOT|>
