You cannot tell if a single graph is generated randomly. If the generation algorithm is random, you need to check the random distribution of the edges. But you will need many instances generated by this algorithm. It is better to check the concept of randomness in mathematics, cryptography and information theory. [or maybe you want to start with rfc 1750 ]
The Erd-Rey model basically says that you take the number n of nodes, and all possible edges have a probability p of existence of a [G (n, p) -model]. Thus, through p you can generate the expected number of edges and the deviation from this expectation. If a significant ratio of the graphs is within the standard deviation of this expectation, well, you may not say that your algorithm is random at all, but you have at least one public function, the expected number of edges.
But then again, not having a large number of states (graphs, intermediate steps of an intermediate graph or similar), you will be lost there. Let's say I give you the number: 4. Is it randomly produced or not?
Don johe
source share