Graphormer-Guided Task Planning: Beyond Static Rules with LLM Safety Perception