package dagro

// addSubgraphConstraints records ordering constraints between non-contiguous
// sibling subgraphs. The traversal and early return mirror Dagre 3.1.1.
func addSubgraphConstraints(,  *Graph,  []string) {
	 := map[string]string{}
	 := ""

	for ,  := range  {
		,  := .Parent()
		for  &&  != "" {
			,  := .Parent()
			 := ""
			if  &&  != "" {
				 = []
				[] = 
			} else {
				 = 
				 = 
			}
			if  != "" &&  !=  {
				.SetEdge(, )
				break
			}
			,  = , 
		}
	}
}