compose/4¶
compose(+ LeftGraph, + RightGraph, - NewGraph)*
Compose the graphs LeftGraph and RightGraph to form NewGraph. In the next example:
?- compose([1-[2],2-[3]],[2-[4],3-[1,2,4]],L).
L = [1-[4],2-[1,2,4],3-[]]
compose(+ LeftGraph, + RightGraph, - NewGraph)*
Compose the graphs LeftGraph and RightGraph to form NewGraph. In the next example:
?- compose([1-[2],2-[3]],[2-[4],3-[1,2,4]],L).
L = [1-[4],2-[1,2,4],3-[]]