Getting graph ready