Graph class