Online Speaker Diarization with Graph-based Label Generation