Moved edge's type to node and renamed to ClassType.