A linear time algorithm for the configuration problem of dominance graphs