update to spatial graph to facilitate tree