graph assembler classmethod