Skip to content

Commit

Permalink
Merge pull request #316 from michellemli/main
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 authored Sep 24, 2024
2 parents 80acefc + bf72829 commit 45cc094
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tdc/resource/primekg.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def to_nx(self):

G = nx.Graph()
for i in self.df.relation.unique():
G.add_edges_from(self.df[self.df.relation == i][["x_id",
"y_id"]].values,
relation=i)
G.add_edges_from(
self.df[self.df.relation == i][["x_name", "y_name"]].values,
relation=i)
return G

def get_features(self, feature_type):
Expand Down

0 comments on commit 45cc094

Please sign in to comment.