#308 Fixed some infinite recursions in graph layout DAG building. Some layouts still misbehaving.