https://ruclips.ru/ru/watch/j5zvmoUMsl4/basics-of-network-theory-solved-problem-13