Entropy Generating Function From Graph