move GraphTypes to records.GraphType