<｜begin▁of▁sentence｜>### Instruction:
If I need to create a complete graph with 5 nodes, get the list of all nodes and edges, and check if the graph is directed, how can I achieve this using NetworkX?
### Response:
import networkx as nx

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

# Print nodes and edges of the graph
print('Nodes:', G.nodes())
print('Edges:', G.edges())

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