Fix ++ and -- bugs
add new function to graphstat