Adding template param for edge potential on regularizer