operator >> in graph