Graph class
remove edge cost