When I run the example I get the following message:
-12
NetworkSimplex: ../network_simplex_solver.cpp:318: static void NetworkSimplexSolver::SanityCheck(NetworkSimplexSolver::pint_t, const std::vectorNetworkSimplexSolver::Arc&): Assertion `arcs[i].ed >= 0 && arcs[i].ed < n' failed.