LEDA code with Visulizer