Graphing shape priors