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

Reresh the graph #59

Closed
jakubkrzysztofsikora opened this issue Jul 26, 2016 · 3 comments
Closed

Reresh the graph #59

jakubkrzysztofsikora opened this issue Jul 26, 2016 · 3 comments

Comments

@jakubkrzysztofsikora
Copy link

Hey! First: Good work, keep it up, man. Second: I can't seem to find any method to refresh the graph after deleting a vertex or edge. Could you point me out how to do it, becasue after I call my methods to delete vertex/edge nothing happens. Relayout doesn't do the trick.

@panthernet
Copy link
Owner

Hi! You should use GraphArea::RemoveEdge and RemoveVertex methods to delete vertices and edges because there are some additional logic associated with this procedures. With these methods you can remove visual or visual+data.

@jakubkrzysztofsikora
Copy link
Author

Okay, thanks, you're right. What about when I want to add a vertex to a certain place in the graph? I've managed to add the vertex and after regenereting the graph its there, but what I would need is adding the vertex to the certain place without changing the layout of the whole graph. Is that possible now or maybe you could point me how could I achieve that by overloading some method?

@panthernet
Copy link
Owner

Again, you have to use AddVertex/AddEdge methods and then use VertexControl::SetPosition() method to set the coordinates.

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