func addLink(t *testing.T, a, b *mdag.Node) { to := string(a.Data) + "2" + string(b.Data) if err := a.AddNodeLink(to, b); err != nil { t.Error(err) } }