-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
I layout a graph manually ,the graph does not display. #1785
Comments
I think this might be bug #603 |
Please test setting random positions or use 0.9.2-SNAPSHOT |
ok,I will have a try. |
Great, please report results |
I have tried with 0.9.2-SNAPSHOT ,it does not still display. |
What's the rest of your code? Can you provide the full code and data to reproduce? |
Did it work with 0.9.2 release? |
font{
line-height: 1.7;
}
With 0.9.2 toolkit, it still does not work.
a#ntes-pcmail-signature-default:hover {
text-decoration: underline;
color: #199cff;
cursor: pointer;
}
a#ntes-pcmail-signature-default:active {
text-decoration: underline;
color: #246fce;
cursor: pointer;
}
发自网易邮箱大师
On 10/26/2017 05:12,Eduardo Ramos<[email protected]> wrote:
Did it work with 0.9.2 release?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
I am seeing this same issue. Seems like the RandomLayout works, but YifanHuLayout, FruchtermanReingold and others don't manipulate the underlying X/Y values. Even when manually running the RandomLayout first to force non-zeros, the other Layouts don't change the X/Ys. |
`package NetworkBuilder; import org.gephi.graph.api.*; public class buildNetwork { public static void main(String[] args) {
} |
There are two issues referred in this thread:
Closing the thread but please reopen if it doesn't solve it. |
Expected Behavior
I layout a graph manually, the graph does not display.
ForceAtlasLayout layout=new ForceAtlasLayout(null);
layout.setGraphModel(graphModel);
layout.setSpeed(50D);
layout.setGravity(10.0d);
layout.initAlgo();
for (int i = 0; i < 200 && layout.canAlgo(); i++) {
layout.goAlgo();
}
layout.endAlgo();
Current Behavior
Possible Solution
I layout a graph automatically,it`s ok.
`
AutoLayout autoLayout = new AutoLayout(20, TimeUnit.SECONDS);
autoLayout.setGraphModel(graphModel);
ForceAtlasLayout secondLayout = new ForceAtlasLayout(null);
AutoLayout.DynamicProperty adjustBySizeProperty = AutoLayout.createDynamicProperty("forceAtlas.adjustSizes.name", Boolean.TRUE, 0.1f);//True after 10% of layout time
AutoLayout.DynamicProperty repulsionProperty = AutoLayout.createDynamicProperty("forceAtlas.repulsionStrength.name", new Double(500.), 0f);//500 for the complete period
autoLayout.addLayout(secondLayout, 1f, new AutoLayout.DynamicProperty[]{adjustBySizeProperty, repulsionProperty});
autoLayout.execute();`
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: