-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
multiple edges won't be merged #1251
Comments
What kind of import are you doing? Spreadsheet import? It now in fact does not sum weights when duplicated edges are found. Instead it not overwrites the edge attributes with the new values. This has been changed because, in the near future, spreadsheet import will support multi-graphs. |
I am doing the CSV import via data laboratory. |
Sure, I will add an option to sum weights like before when duplicated edges are found. |
Great, thank you! |
Also need to update the wizard text, now it is incorrect. It still says that attributes will be ignored and weights summed. |
Yes, that was actually confusing me and lead me to re-install gephi. |
It's my understanding that one of the benefits of Gephi 0.9 is that it handles multi-edges, which is a great benefit to have for certain types of modeling. It sounds like the fix will be to add an option to either a) allow multi-edges, or b) provide an option to allow the import function to merge duplicate edges and sum their weights. This sounds like a great solution, provided Gephi doesn't lose the ability to handle more than one edge that connects two nodes. -Thanks! |
There is an issue to support multi-edges in spreadsheet import (#1248). But that will need, like gexf import, a 'Kind' column with different values for different edges. Repeated edges with the same kind will still be merged, and their weights should be summed. So that's why we actually have a bug here and I need to get the weight summing feature back. |
@eduramiba You can see where I am with |
Fix issue #1272 - NullPointerException on SQLite import [0.9.0] Fix issue #1239 - SVG, PDF export generate 'null pointer' exception Fix issue #1281 Data laboratory - NullPointerException when switching workspaces Fix #1251 multiple edges won't be merged - Go back to old weight summing logic and not overriding other attributes. (These changes + more control should be added with #1282 (Migrate spreadsheet importer to Import API))
One other quick question with multi-edges in Gephi 0.9--more specifically, dynamic multi-edges. Suppose one imports a list of dynamic edges--including such entries as: Would E1 and E2 be merged as a SINGLE edge that is "on" during (t=1.0 and t=2.0 with weight 1.0) and again during (t=3.5 and t=5.0 with weight 2.0), or would these be seen as two separated edges, despite the "kind" being identical between them? Or, can the import function handle the merging of dynamic multi-edges? Thanks! |
@GitHubFDC [...]
<edge id="1" source="N1" target="N2" weight="1.0, 2.0, 3.5, 5.0" type="directed" kind="works_for"/> and use listDouble as the datatype for the weight attribute. You can follow the work in progress on this here: If you want to suggest a merge on kind feature for Gephi's data import you can open a new issue. |
Actually there can be no two edges with the same kind, source and target even if they have a different id. Core graph API does not allow this. About spreadsheet import, we will only sum edge weights when duplicated (same source, target and kind), I don't think we will merge time intervals, in order to keep things simple and unambiguous. You should write the whole interval interval in one place if you want that (<[1.0, 2.0]; [3.5, 5.0]>). The related issue for this is #1248 |
Thanks @eduramiba for clarifying, i ll have to make sure that the schema checks for this. |
I don't think the gexf schema needs to check for this. That will be done by the gexf importer, right? @mbastian knows this better |
Yes, but if people construct gexf files outside of Gephi there should be a validation errror, explaining that |
@eduramiba Hi Eduardo, do you mean my gdf file or @otichy's CSV? |
Oh this seems a different problem now. Since with 0.9.1 real parallel edges (same source, target and kind) are allowed, something must have changed in the graphstore API so the spreadsheet importer is not detecting that an edge already exists and does not sum weights, but actually creates another edge with same source and target (which should be the default behaviour in the future, but still have an option to sum weights). I could reproduce it with this file: test.zip Will have to investigate this, thanks for the report. |
Just in case more examples are needed, here is my CSV. Thanks! |
I noticed that in the 0.9.2 development nightly - isn't merging or providing a check box to merge duplicate edges that have the same ID pairs. Am i suppose to enable this prior to utilizing the data laboratory import process? |
I installed the newest Gephi version 0.9.1 and tried to merge/append the graphs that I was working with previously (comment above on Feb 4) and it is having the same problem - the edge weight does not increase and it returns the error below. I have it selected to append the graph and the edge merge strategy set to 'sum'. java.lang.IllegalArgumentException: The edge id already exist |
Did I get it right that this issue is touching different subitems? For a) I can confirm @jpoko (on 12/4): I'd like to use edge merging for data manipulation with large files (e.g. dense bipartite networks generated from secondary data where you want to cut off edge weights below some point). So I'm using 0.8 in parallel. |
This issue is only about spreadsheet import. Problems in gexf import should be included in a separate issue. |
I am sorry if my question seems ridiculous to you guys, but I still do not know how to get edges summed together. Has this problem been solved? I was using the older version 0.8.2 and there it was done automatically. Now I am running 0.9.1 on Mac OS 10.10.5 and nothing happens... I am importing CSV that contains data in this format: And after import all the edges have weight = 1.0 I have read that you need to install some updates and it should be fine but when I go to Tools -> Plugins - Check for updates it does not show any updates. And I am connected to Gephi updates Center and Gephi third Parties Plugins. I would appreciate your help. |
Not solved yet, sorry. But it's a high priority bug. El 7 oct. 2016 2:48 p. m., "HalldisNaamah" [email protected]
|
Bump. This is a high priority bug for this user too! Thanks for all the great work. |
Yep, sorry to build up the pressure, but I would like to see this implemented too. |
Based on commit 6b041a4 #1526 NullPointerException on Modularity Statistics with gexf with kind / parallel nodes #1633 Gephi 0.9.1 freezes for dynamical graphs #1636 Ranking operation not working (node color and size) #1640 taken screenshot will be overwritten #1454 Suddenly not importing all of my edges #1489 CSV import error: found rows with empty source or target columns #1251 Multiple edges won't be merged
I am using gephi 0.9.0 (latest version) on my Macbook Pro.
It worked fine so far.
After doing the latest updates I observed the problem, that multiple edges won't be merged (and up-weighted) any longer. It looks like, that multiple edges will be ignored after their first occurrence and the weight is set to 1.
Best
Chris
The text was updated successfully, but these errors were encountered: