add function make_edges
switch test_gui to draw_edges;  slight read refactoring