import networkx as nx
import matplotlib.pyplot as plt
# Create a directed graph (DAG)
G = nx.DiGraph()
# Add nodes and edges based on the neuron structure
G.add_edges_from([(1, 4), (2, 4), (3, 4), (4, 5), (5, 6)])
# Define positions for each node
pos = {1: (0, 2), 2: (1, 2), 3: (2, 2), 4: (1, 1), 5: (1, 0), 6: (1, -1)}
# Labels to reflect parts of a neuron
labels = {
1: 'Directed',
2: 'Games',
3: 'Allegory',
4: 'Tradition',
5: 'Innovation',
6: 'Revolution'
}
# Draw the graph with neuron-like labels
nx.draw(G, pos, with_labels=True, labels=labels, node_size=4000, node_color='lightblue', arrows=True)
plt.title("Tension in Bow (Inherited & Added Constraints) +\n Release of Arrow (For Loftiest Goals)")
plt.show()