Comments (19)
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.
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.
Thanks! I will check it later
from gephi-toolkit.
Hi, this is already reported at gephi/gephi#1630 and is in the list of priority fixes.
from gephi-toolkit.
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.
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.
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.
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.
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.
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.
Yup, I tried with both graph and graphModel since you can use either. The same happens with both.
from gephi-toolkit.
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.
I tried this a couple of days ago with gephi-toolkit-0.9.2-20170504.212034-186-all - same thing
from gephi-toolkit.
Ok, will you mail me your test file for reproducing it please? Or attach a zip here if you can
from gephi-toolkit.
Sure -> here is the .gexf produced by my java code, and the same file but opened and then saved by gephi
from gephi-toolkit.
This seems to work with latest toolkit 0.9.2-SNAPSHOT. Can you also test it please?
from gephi-toolkit.
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.
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.
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)
- Oracle Driver plugin: import with SID HOT 2
- Include Tools API into the Toolkit to access tools such as Brush HOT 1
- How can I achieve Dynamic Nodes and Edges through Gephi Toolkit 0.9.2
- NodePartitionFilter has no effect
- GraphController.getGraphModel not JRE1.7 compatible HOT 2
- Update dependencies from NetBeans RELEASE82 to RELEASE90 HOT 9
- Jigsaw support: split package org.gephi.graph.api HOT 2
- Data import from Oracle database ... again ? HOT 6
- Cannot resolve dependencies due to RELEASE82 being unavailable on bit.netbeans.org HOT 3
- NodePartitionFilter not working HOT 1
- gephi-toolkit-0.9.2-all.jar couldn't be added into current netbeans' module project HOT 1
- Migrate from Travis to GitHub Actions HOT 1
- Search broken in JavaDoc HOT 2
- Geo Layout doesn't work
- saveProject did not generate savefile HOT 5
- Unable to build using maven HOT 1
- show node labels in preview not persisting
- ClassCastException when running "simple" example HOT 1
- dragging and dropping nodes
- pom.xml error ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gephi-toolkit.