/// <summary>
 /// The constructor
 /// </summary>
 /// <param name="individualEGDL">The EGDL code of an individual</param>
 /// <param name="db">The database connection</param>
 public InbreedingCalculation(Database db, int PedigreeID)
 {
     localGraph = new Graph(db);
     currentPedigree = PedigreeID;
     egdls = null;
 }
 /// <summary>
 /// The constructor of EGDL class uses a database instance as its input parameter.
 /// The reason is that we have to access to the databse frequently, and it's better to open the 
 /// database once, do all the tasks and then close it.
 /// </summary>
 /// <param name="conn">The connection string of the database</param>
 public EGDL(Database conn)
 {
     //using the database conn to initilize the local graph object
     localGraph = new Graph(conn);
 }