-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: unsupported operand type(s) for +: 'EdgeView' and 'list' #3
Comments
Networkx version.
…On Fri, 13 Sep 2019 at 11:17, Miguel Won ***@***.***> wrote:
Hi,
I had this error with a fresh install and using your politician_edges.csvas
a testing example.
(env) ***@***.***:/disk2/MP2Vec/LabelPropagation/src$ python label_propagation.py --input ../data/politician_edges.csv --seed 10
+-------------------+------------------------------+
| Parameter | Value |
+===================+==============================+
| Assignment output | ./output/politician.json |
+-------------------+------------------------------+
| Input | ../data/politician_edges.csv |
+-------------------+------------------------------+
| Rounds | 30 |
+-------------------+------------------------------+
| Seed | 10 |
+-------------------+------------------------------+
| Weighting | overlap |
+-------------------+------------------------------+
Traceback (most recent call last):
File "label_propagation.py", line 17, in <module>
create_and_run_model(args)
File "label_propagation.py", line 11, in create_and_run_model
model = LabelPropagator(graph, args)
File "/disk2/MP2Vec/LabelPropagation/src/model.py", line 27, in __init__
self.weight_setup(args.weighting)
File "/disk2/MP2Vec/LabelPropagation/src/model.py", line 35, in weight_setup
self.weights = overlap_generator(overlap, self.graph)
File "/disk2/MP2Vec/LabelPropagation/src/calculation_helper.py", line 53, in overlap_generator
edges = edges + [(edge[1], edge[0]) for edge in edges]
TypeError: unsupported operand type(s) for +: 'EdgeView' and 'list'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=AEETMF6HODTEVUTGSB4V34DQJOVGZA5CNFSM4IWRFBL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLINBOA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEETMFY66H3QHVBIG72JMCDQJOVGZANCNFSM4IWRFBLQ>
.
|
Ok and which networkx version should I use? I had this problem with a fresh instalation, including the needed packages list. |
1.11
…On Fri, 13 Sep 2019 at 11:26, Miguel Won ***@***.***> wrote:
Ok and which networkx version should I use? I had this problem with a
fresh instalation, including the needed packages list.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=AEETMFYI54NN2AVUEZQISXLQJOWL5A5CNFSM4IWRFBL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6VLV2A#issuecomment-531282664>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEETMF5PGMRDBWDVIAGDW4DQJOWL5ANCNFSM4IWRFBLQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I had this error with a fresh install and using your
politician_edges.csv
as a testing example.The text was updated successfully, but these errors were encountered: