# g = gtt.extract_largest_component(gg, directed=False, prune=True) # this line is added since we need to work with the LCC of the graphs for all algorithms
# drug_protein = "DrugHasTarget"
d_type="drug"
node_name_attribute="drugstone_id"# nodes in the input network which is created from RepoTrialDB have primaryDomainId as name attribute
# Check that all seed seeds have been matched and throw error, otherwise.
forprotein,foundinis_matched.items():
ifnotfound:
raiseValueError("Invaliddd seed protein {}. No node named {} in {}.".format(protein,protein,file_path))
# Delete edges that should be ignored or are not contained in the selected dataset.
deleted_edges=[]
if (drug_idsandnotinclude_indirect_drugs):# If only_direct_drugs should be included, remove any drug-protein edges that the drug is not a direct neighbor of any seeds