Solved B.

Did I already mention how awesome is XPTemplate? IT'S AWESOME!!

 - B (2013-02-18): Путь в ациклическом графе

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>