package dagro

import 

// DebugOrdering returns the ordering graph produced by Dagre's debug helper.
func ( *Graph) *Graph {
	 := buildLayerMatrix()
	 := NewGraph(GraphOptions{Compound: true, Multigraph: true}).SetGraph(Attrs{})
	for ,  := range .Nodes() {
		.SetNode(, Attrs{"label": })
		 := asAttrs(.Node())
		 := "undefined"
		if ,  := ["rank"];  {
			 = jsConcatString()
		}
		_ = .SetParent(, "layer"+)
	}
	for ,  := range .Edges() {
		setEdgePreservingName(, .V, .W, Attrs{}, )
	}
	for ,  := range  {
		 := fmt.Sprintf("layer%d", )
		.SetNode(, Attrs{"rank": "same"})
		for  := 1;  < len(); ++ {
			.SetEdge([-1], [], Attrs{"style": "invis"})
		}
	}
	return 
}