make implementation of restriction map independent of graph type