-
Notifications
You must be signed in to change notification settings - Fork 129
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
Changing positions of nodes #32
Comments
That's because the position values are overridden by the algorithm you are using. You could implement a new algorithm that does nothing, like this:
|
Since I am using the algorithm for the Directed graph, I could not find the method which overrides the position values, could you point exactly which one takes care of that? Thank you! |
Well, the point of the algorithms is calculating the positions for each node in the graph. If you try to "disable" the position setting the whole algorithm code is useless. Therefore I suggested a NoOpAlgorithm. What are you trying to achieve? Do you want to position all of your nodes yourself or do you want to position them after the algorithm already run? The latter is currently not possible. |
What I am trying to do is to put certain nodes on the same height as eachother, for example having node A and node B on the same Y axis level. |
As mentioned earlier its not possible right now to change the position after the algorithm has run. |
Right, ok. Thank you again! |
Hello, I am trying to plot the Nodes with custom x, y values but I notice that using the getters and setters from the Node objects, doesn't change their final position when displayed on the phone. Is it possible to change or modify the vector and/or position values of the Node object, so that I can display them where I want?
Thank you very much!
The text was updated successfully, but these errors were encountered: