Giter VIP home page Giter VIP logo

Comments (19)

Jonty800 avatar Jonty800 commented on September 16, 2024 4

I modified the Gephi code for Modularity.java and stopped it from being asynchronous. I did this by removing

implements Statistics, LongTask

and all associated code from these packages:

import org.gephi.statistics.spi.Statistics;
import org.gephi.utils.longtask.spi.LongTask;
import org.gephi.utils.progress.Progress;
import org.gephi.utils.progress.ProgressTicket;

The class now works. I hope this helps you identify the bug.

https://gist.github.com/Jonty800/999425fbc1061fc2721ad4fc202b8175

Jon

from gephi-toolkit.

Jonty800 avatar Jonty800 commented on September 16, 2024 1

I use a java program to build my .gexf and use this file for both the toolkit and the app. I'll run some more tests tomorrow, and ensure there are no parallel edges. Thanks for the help!

from gephi-toolkit.

eduramiba avatar eduramiba commented on September 16, 2024 1

Thanks! I will check it later

from gephi-toolkit.

eduramiba avatar eduramiba commented on September 16, 2024

Hi, this is already reported at gephi/gephi#1630 and is in the list of priority fixes.

from gephi-toolkit.

Jonty800 avatar Jonty800 commented on September 16, 2024

Oh I see. It works perfectly in the desktop application, just not in the toolkit.

Do you have any suggestions on how I could maybe get it to work? If I can automate the modularity it would speed my work up a lot :)

from gephi-toolkit.

eduramiba avatar eduramiba commented on September 16, 2024

We still need to find the bug, though it should not work for you in desktop app either. You can try to avoid parallel edges, since maybe this is other bug already fixed in desktop but not released in toolkit.

from gephi-toolkit.

Jonty800 avatar Jonty800 commented on September 16, 2024

I've opened my .gexf in the Gephi app (0.9.1) and I can see that it is merging the parallel weights. I then save this file from Gephi app to a new .gexf.

When I use this new .gexf, the hanging issue still occurs and finish() is never called.

I can't identify why the Gephi app works, and the toolkit does not.

I hope this helps - good luck with the bug :)

from gephi-toolkit.

eduramiba avatar eduramiba commented on September 16, 2024

That's strange, can you show your java code? Or compare with this example https://github.com/gephi/gephi-toolkit-demos/blob/master/src/main/java/org/gephi/toolkit/demos/HeadlessSimple.java

from gephi-toolkit.

Jonty800 avatar Jonty800 commented on September 16, 2024

Sure: https://gist.github.com/Jonty800/d284ff55fb55cd42bb49622b90052ba9

The ProgressTicket just prints out some lines so that I can identify which method is being called.

from gephi-toolkit.

eduramiba avatar eduramiba commented on September 16, 2024

Mmm can you try to pass the graphModel instead of graph like in https://github.com/gephi/gephi-toolkit-demos/blob/master/src/main/java/org/gephi/toolkit/demos/PartitionGraph.java ?

from gephi-toolkit.

Jonty800 avatar Jonty800 commented on September 16, 2024

Yup, I tried with both graph and graphModel since you can use either. The same happens with both.

from gephi-toolkit.

eduramiba avatar eduramiba commented on September 16, 2024

I see, you can also try to use the latest 0.9.2 snapshot build:

https://github.com/gephi/gephi-toolkit#nightly-builds-092-snapshot

from gephi-toolkit.

Jonty800 avatar Jonty800 commented on September 16, 2024

I tried this a couple of days ago with gephi-toolkit-0.9.2-20170504.212034-186-all - same thing

from gephi-toolkit.

eduramiba avatar eduramiba commented on September 16, 2024

Ok, will you mail me your test file for reproducing it please? Or attach a zip here if you can

from gephi-toolkit.

Jonty800 avatar Jonty800 commented on September 16, 2024

gephi files.zip

Sure -> here is the .gexf produced by my java code, and the same file but opened and then saved by gephi

from gephi-toolkit.

eduramiba avatar eduramiba commented on September 16, 2024

This seems to work with latest toolkit 0.9.2-SNAPSHOT. Can you also test it please?

from gephi-toolkit.

Jonty800 avatar Jonty800 commented on September 16, 2024

Sorry for the late reply, it's been a while since I've needed to use Gephi.

I've been testing the 0.9.3-SNAPSHOT of the toolkit and I seem to get the same problem (only start() method is called, and then it hangs).

My gexf is created using java code only. There are duplicates (A vs B, B vs A), as you can see, for edges:

https://gist.github.com/Jonty800/f8a04904857fa0187ae3686c15fe7f09

Any thoughts?

from gephi-toolkit.

liuqiyuan avatar liuqiyuan commented on September 16, 2024

I have experienced the same issue too with multiple threads involved. I thought it was related to the mess of projects/workspaces, but I will give the above tricks @Jonty800 has provided a try and provide updates soon. Finger crossed :)

from gephi-toolkit.

mbastian avatar mbastian commented on September 16, 2024

Closing old issue. I can't reproduce it. Feel free to reopen with additional details. I've added a label on gephi/gephi#1630 to check whether this is still happening.

from gephi-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.