1.. _avoid_dynamic_node_removal: 2 3Avoid Dynamic Node Removal 4========================== 5 6 7These are the basic guidelines regarding nodes and edges: 8 9 10- Avoid dynamic node removal 11 12 13- Adding edges and nodes is supported 14 15 16- Removing edges is supported 17 18 19It is possible to add new nodes and edges and to remove old edges from a 20flow graph as nodes are actively processing messages in the graph. 21However, removing nodes is discouraged. Destroying a graph or any of its 22nodes while there are messages being processed in the graph can lead to 23premature deletion of memory that will be later touched by tasks in the 24graph causing program failure. Removal of nodes when the graph is not 25idle may lead to intermittent failures and hard to find failures, so it 26should be avoided. 27 28