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

Grouping does not work (?) #74

Open
Karreg opened this issue Feb 7, 2018 · 4 comments
Open

Grouping does not work (?) #74

Karreg opened this issue Feb 7, 2018 · 4 comments

Comments

@Karreg
Copy link

Karreg commented Feb 7, 2018

Hello,

I've tried using Gephi and this plugin to display linked concepts for learning purpose. And it's working great, except for the grouping. I can't manage to make it work, but I'm not sure I'm using it right since it's not documented.

So I've done a small dataset to reproduce the issue, basically 10 nodes with label and cat columns. In the export tool I set the cat column as grouping data, and in the exported file, there's only 1 group called group1, instead of the 4 groups defined in the dataset.

I have attached the dataset (.gephi as a .txt file), the screenshot of the export configuration and the result.

Is there something I'm doing wrong, or is this a bug? In the latter case, if there's a workaround by changing something in the exported files it would be fine too.

Many thanks!

capture1
capture2

groupTest.txt

@computermacgyver
Copy link
Member

Hi Karreg, Apologies for the trouble. Could you please share your data.json and config.json files from the export, and I will look into this.

@computermacgyver
Copy link
Member

I've dug a little further and see that the code expects groups to have different node colours. If you set the node colour in Gephi to a different colour for each group the code should work as is. If you prefer them to all be the same colour, I can update the code when I am at my computer (currently on my mobile)

@Karreg
Copy link
Author

Karreg commented Feb 7, 2018

Don't apologize it's fine :)
You already answered another time, but here are the files anyway. I have compared with some samples found on internet and could not see a difference to help to workaround the issue.

config.txt
data.txt

I tried the color for each category, and indeed it works! Until now I was just using the data lab, nothing else. Thanks for the help!
It's up to you to see if the issue should be closed. Maybe an evolution to determine automatically the color based on category without setting it up would be great, but maybe not?

@computermacgyver
Copy link
Member

Great. I'm glad it's working with that tweak. I'll leave this issue open to remind me to update this in a future release.

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

No branches or pull requests

2 participants