i could see a way to train a neral net/genetic algorythm to do it for you i.e. you try one set of constraints, adjust its fitness based on accuricy/number of nodes etc... after a while you could get a fairly accurite one to use, it would be slow so you couldnt do it dynamicly in your prog but instead of an editor