Creat a generalized Ising model on a graph, by calcualting its
corresponding generalized freeenergy and its derivate with respect
to weight and beta representing the graph's relatively global feature to do graph isomorphism test
command line:
python lnz.py -graph rrg -n 20 -k 3 -Dmax -1 -node raw -choice 2 -seed1 10 -seed 5 -permutation