Converted graph and versions to records and adapted most predicates.