
Versioned Graphs
Managing v1 and v2 in production.
Versioned Graphs
Code changes. Data shouldn't break.
The Factory Pattern
Dont define graph = ... globally.
Define def get_graph(version): ...
If a user session was started on v1, continue creating v1 instances for them until they finish. Start new users on v2. This prevents "AttributeError" when v2 expects a new state key that v1 users don't have.