Hash of a complex structure : <p>I'd like to know a relatively simple way to generate the hash of a complex C structure (which form a graph, in my case). By "simple" I mean, if possible, without having to go through all the nodes it forms. My goal would be, afterwards, to check if two structures are identical thanks to their hash, but also to sort them in an orderly way.</p>

<p>There are functions and algorithms for numbers or strings for instance, but I don't know a good way to do it for a structure. What would you recommend? </p>
