gui update, added weighted_graph functions