graph TB a(catsanddog) --cats-->b(anddog) a(catsanddog) --cat-->c(sanddog) b --and--> d(dog) c --sand--> e(dog)