updated visualize.js such that it conforms to global edge_widths