add graph visualization command
support plotting graph degrees