added better visualization of graphs