<｜begin▁of▁sentence｜>### Instruction:
Given two graphs, one directed and one undirected, identify if each graph is directed using the NetworkX is_directed function.
### Response:
import networkx as nx

# Create directed graph
dg = nx.DiGraph()
# Create undirected graph
ug = nx.Graph()

# Check if dg is directed
is_dg_directed = dg.is_directed()
# Check if ug is directed
is_ug_directed = ug.is_directed()

# Output
print('Directed graph (dg) directed:', is_dg_directed)
print('Undirected graph (ug) directed:', is_ug_directed)
<|EOT|>
