An Automatic Graph Construction Framework based on Large Language Models for Recommendation