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

Add functionality for creating custom graphs #1

Open
HKH515 opened this issue Sep 1, 2017 · 2 comments
Open

Add functionality for creating custom graphs #1

HKH515 opened this issue Sep 1, 2017 · 2 comments

Comments

@HKH515
Copy link
Contributor

HKH515 commented Sep 1, 2017

Allow the user to create/delete vertices/edges

rostam pushed a commit that referenced this issue Oct 1, 2017
@rostam
Copy link
Owner

rostam commented Oct 18, 2017

This functionality is there. I have some suggestions.
Whenever that user adds a vertex or edge, the whole graph is built again:
cy.batch(function(){
cy.elements().remove();
cy.add(nodes);
cy.add(edges);
applyLayout();
});
setTimeout(reload, 1000);

Why do you that. Why not just adding that specific new element?
cy.add(...)

Is there any problem with that?

@HKH515
Copy link
Contributor Author

HKH515 commented Oct 18, 2017

We were having some problems where some nodes that we added in cyto didnt exist in the backend, so we just resorted to get all info about the graph each time we edit the graph clientside, it's not very efficient but this was a solution that fixed that bug. To be honest we are not very proficient with cytoscape, we don't really know how to to this efficiently in cytoscape.

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