Programmatically change node group

How to change any node group programmatically without redrawing flowchat ?

Could you please be more specific about the situation and what it is that you want to change? Showing small before and after screenshots would help.