Update densegraphgen.cpp

Added display function.