Skip to content
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

Gephi does not import edgeslist correctly from csv #2216

Open
rsbaptista opened this issue Oct 16, 2020 · 2 comments
Open

Gephi does not import edgeslist correctly from csv #2216

rsbaptista opened this issue Oct 16, 2020 · 2 comments

Comments

@rsbaptista
Copy link

rsbaptista commented Oct 16, 2020

Expected Behavior

When import an edgelist to build an undirected graph with sum edges option, import edges a-b and b-a as one edge with weight = 2

Current Behavior

When I have two edges a-b and b-a, Gephi is not importing both.

Possible Solution

Steps to Reproduce

  1. Create a csv file like this:

Source,Target
a,b
b,a
a,c
c,a

  1. Open Gephi and go to File > Open and then open the csv file

  2. Select directed graph and sum the edges. Here you can see the information about nodes and edges correct.
    image

  3. But then, no edges imported. Only the nodes
    image
    image

Context

Your Environment

  • Version used: Gephi 0.9.2
  • Java version: 8 update 261
  • Operating System: Windows 10
@wetneb
Copy link
Member

wetneb commented Dec 2, 2021

Thank you for this report. Did you try changing the edge merging settings?

@pgdr
Copy link
Contributor

pgdr commented Jan 17, 2023

Cannot reproduce. Do you mean undirected or directed? You use them interchangeably.

For directed, the edges in 0.10.0 are:

Source Target Type Id Label Weight
0 a b Directed 0 nan 1
1 b a Directed 1 nan 1
2 a c Directed 2 nan 1
3 c a Directed 3 nan 1

For undirected, the edges in 0.10.0 are:

Source Target Type Id Label Weight
0 a b Undirected 0 nan 2
1 a c Undirected 2 nan 2

These two seem correct for your dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants