Add wide graph code