func DOTAttrs(a Attrs) []encoding.Attribute {
	keys := a.Keys()
	attrs := make([]encoding.Attribute, len(keys))
	i := 0
	for _, k := range keys {
		attrs[i] = encoding.Attribute{
			Key:   k,
			Value: a.Get(k),
		}
		i++
	}
	return attrs
}
DOTAttrs returns attrs as []enciding.Attribute
package attrs
import "gonum.org/v1/gonum/graph/encoding"