SumOfAdjacencyMatrices

SumOfAdjacencyMatrices(R, L) returns the sum of adjacency matrices in the list of relation numbers L. For example, use SumOfAdjacencyMatrices(R, [1,2]).