Report question

Question: How does 'git log --graph' or 'hg graphlog' work?