Adds functionality so edges can be styled from the algorithm.