1. A computer implemented method of determining a topology of a transaction in a network, the method comprising: generating statistics of the transaction processed by the network, the network comprising a plurality of nodes, wherein generating comprises tabulating, at each node in the plurality of nodes of the network, a number of messages that are inbound to the node and a number of messages that are outbound from the node; 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 the topology based on the calculated solution.