I don’t know of a method to determine these parameters, unfortunately.
However, you could read the paper which describes the KeyGraph algorithm. Maybe you’ll find some more information there, which helps to optimize your outcome. Here is the link to the paper: http://sclab.yonsei.ac.kr/courses/06mobile/4-1.pdf