Add the ability to set per-edge parameters (issue #19).