func (dagOpts) Depth(depth int) DagTreeOption {
	return func(settings *DagTreeSettings) error {
		settings.Depth = depth
		return nil
	}
}
// Depth is an option for Dag.Tree which specifies maximum depth of the
// returned tree. Default is -1 (no depth limit)
Depth is an option for Dag.Tree which specifies maximum depth of the
returned tree. Default is -1 (no depth limit)
// Depth is an option for Dag . Tree which specifies maximum depth of the // returned tree . Default is - 1 ( no depth limit )
func (dagOpts) Depth(depth int) DagTreeOption {
	return func(settings *DagTreeSettings) error {
		settings.Depth = depth
		return nil
	}
}
func ( dagOpts ) Depth ( depth int ) DagTreeOption { return func ( settings * DagTreeSettings ) error { settings . Depth = depth return nil } }
Depth is an option for Dag.Tree which specifies maximum depth of the
returned tree.
Depth is an option for Dag . Tree which specifies maximum depth of the returned tree .