<｜begin▁of▁sentence｜>### Instruction:
In preparation for the upcoming strategic planning session, our leadership team is interested in visualizing hierarchical structures and decision-making pathways. We've decided to use a binary tree model to simulate this structure. To assist with the visualization for our session, could you construct a diagram using NetworkX that showcases a complete binary tree incorporating 10 nodes? An accompanying graphical illustration created via matplotlib would be highly beneficial for presentation purposes. This model will help facilitate a more concrete understanding of the information flow within the organization. Please note that the structure should have a branching factor of 2, as indicated by the provided data parameters.
### Response:
import networkx as nx

# Create a full binary tree of 10 nodes
r = 2 # binary tree has a branching factor of 2
n = 10
T = nx.full_rary_tree(r, n)

# Draw the tree using matplotlib (optional)
import matplotlib.pyplot as plt
nx.draw(T, with_labels=True)
plt.show()
<|EOT|>
