Unified and Dynamic Graph for Temporal Character Grouping in Long Videos