1. A computer implemented method of determining a topology of a transaction in a network, the method comprising: generating statistics of a transaction processed by a network, the network comprising a plurality of nodes; determining a data structure that is mathematical, the mathematical data structure being created from the statistics generated in processing the transaction; applying a number of constraints to the determined mathematical data structure; calculating a solution for the mathematical data structure; and determining a topology based on the calculated solution.