Construct Graphs of S4 Class Hierarchies