Tool functional
generate graph output