<｜begin▁of▁sentence｜>### Instruction:
Given a requirement to create a scale-free directed graph with a specific number of nodes and predefined attachment probabilities, how can one generate and visualize such a graph using NetworkX?
### Response:
import networkx as nx

# Generate a scale-free directed graph with 100 nodes
G = nx.scale_free_graph(100, alpha=0.41, beta=0.54, gamma=0.05, delta_in=0.2, delta_out=0.2, seed=42)

# Draw the graph
import matplotlib.pyplot as plt
nx.draw(G, with_labels=True)
plt.show()
<|EOT|>
