<｜begin▁of▁sentence｜>### Instruction:
Using the NetworkX library, how can you create a complete graph with a specified number of nodes and determine if the graph is directed?
### Response:
import networkx as nx

# Create a complete graph with 5 nodes
G = nx.complete_graph(5)

# Check the number of nodes
print('Number of nodes:', len(G))

# Check the number of edges
print('Number of edges:', G.size())

# Create a directed complete graph
H = nx.complete_graph(3, create_using=nx.DiGraph)

# Check if the graph is directed
print('Is graph directed:', H.is_directed())
<|EOT|>
