Get class_name if it exists.
Refactor Dread::Graph.