Source: https://web.cs.hacettepe.edu.tr/~erkut/bbm413.f13/w11-edges.pdf