[SOLVED] parallel edges
-
- Posts:11
- Joined:03 May 2011 15:02 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Hello,
Is there a way that Gephi ignore parallel edges? I would prevent it from increasing the edge's weight during the import when parallel edges are found.
Thanks !
W.
Is there a way that Gephi ignore parallel edges? I would prevent it from increasing the edge's weight during the import when parallel edges are found.
Thanks !
W.
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: parallel edges
No,
But you can set edge weight to 1 in the Data Laboratory. In Edges > Fill Column with a value (on the bottom) > Weight
But you can set edge weight to 1 in the Data Laboratory. In Edges > Fill Column with a value (on the bottom) > Weight
-
- Posts:11
- Joined:03 May 2011 15:02 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: parallel edges
Unfortunately I cannot see the column "weight" in the Edges list, even if all attributes columns that can be shown are ticked.
Weight is nevertheless displayed when I edit an edge.
Weight is nevertheless displayed when I edit an edge.
- mbastian
- Gephi Architect
- Posts:728
- Joined:10 Dec 2009 10:11
- Location:San Francisco, CA [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: parallel edges
Yes by default it merges the edge weight.Is there a way that Gephi ignore parallel edges? I would prevent it from increasing the edge's weight during the import when parallel edges are found.
That is weird, is that for all graphs or just this one?Unfortunately I cannot see the column "weight" in the Edges list, even if all attributes columns that can be shown are ticked.
-
- Posts:11
- Joined:03 May 2011 15:02 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: parallel edges
Just for this one. I checked with previous graphs and weights were correctly displayed (regardless of the presence of parallel edges or not).
I re-opened the problematic graph and got the following error : "the project file couldn't be opened. Please check the file has .gephi extension. IllegalArgumentException - the value column doesn't exist".
Actually it opens anyway,, diplaying edges... Thus I can work on it, but this is weird!
I re-opened the problematic graph and got the following error : "the project file couldn't be opened. Please check the file has .gephi extension. IllegalArgumentException - the value column doesn't exist".
Actually it opens anyway,, diplaying edges... Thus I can work on it, but this is weird!
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: parallel edges
I have the opposite issue:
I import an edge list, edges having different attributes hence they are not merged, which is good. But in the Overview I'd like to see the thickness of the edges proportional to the sum of the edge weights it represent, like meta-edges.
Is it something we could implement?
Or does it make sense to add a way to group edges and not only nodes in the Data Lab?
I import an edge list, edges having different attributes hence they are not merged, which is good. But in the Overview I'd like to see the thickness of the edges proportional to the sum of the edge weights it represent, like meta-edges.
Is it something we could implement?
Or does it make sense to add a way to group edges and not only nodes in the Data Lab?
- mbastian
- Gephi Architect
- Posts:728
- Joined:10 Dec 2009 10:11
- Location:San Francisco, CA [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: parallel edges
Yeah, but you can already do that with merge, no?
Go to Merge Columns, pick your weights columns and take the SUM operator?
Go to Merge Columns, pick your weights columns and take the SUM operator?
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: parallel edges
No because I would want to merge rows, not columns, and there is no way to merge either nodes or edges in Gephi
- mbastian
- Gephi Architect
- Posts:728
- Joined:10 Dec 2009 10:11
- Location:San Francisco, CA [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: parallel edges
Not sure I understand, can you explain or show some of your data?
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: parallel edges
Ah damn it, when I use the "Import Spreadsheet" in the Data Lab, it only imports the first edge, the others are ignored. Imagine an edge list:
Only the first edge will be imported, the second is ignored. Sorry for my mistake.
In a case of parallel edges, I suggest to warn the user and make the "Import Spreadsheet" to behave like the CSV File Importer do by summing the weights if possible, and leave blank the other attributes. I open a bug.
Code: Select all
"ID" "Source" "Target" "AnAttribute"
0 1 2 attrvalue0
1 1 2 attrvalue1
In a case of parallel edges, I suggest to warn the user and make the "Import Spreadsheet" to behave like the CSV File Importer do by summing the weights if possible, and leave blank the other attributes. I open a bug.