Added commuting computation (in-out flows and the graph)