Skip to content

Commit

Permalink
improving Networks methods
Browse files Browse the repository at this point in the history
  • Loading branch information
J-A-Ha committed Sep 19, 2024
1 parent 6da8bca commit f0200c5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 1 deletion.
Binary file modified art/classes/__pycache__/citation_crawler.cpython-39.pyc
Binary file not shown.
Binary file modified art/classes/__pycache__/networks.cpython-39.pyc
Binary file not shown.
Binary file modified art/classes/__pycache__/references.cpython-39.pyc
Binary file not shown.
Binary file modified art/classes/__pycache__/review.cpython-39.pyc
Binary file not shown.
6 changes: 5 additions & 1 deletion art/classes/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ def degrees_dataframe(self):
out_degrees = Network.degree(self, mode = 'out')

index = 0
for item in self.vs['name']:
for v in self.vs:
if 'name' in v.attributes().keys():
item = v['name']
else:
item = v.index
degrees_dataframe.loc[index] = [item, total_degrees[index], in_degrees[index], out_degrees[index]]
index += 1

Expand Down
Binary file modified art/exporters/__pycache__/network_exporters.cpython-39.pyc
Binary file not shown.

0 comments on commit f0200c5

Please sign in to comment.