cytoscape / ipycytoscape

A Cytoscape Jupyter widget
https://ipycytoscape.readthedocs.io/en/master/
BSD 3-Clause "New" or "Revised" License
269 stars 62 forks source link

Add a check of object type to `add_edges` and `add_nodes` #218

Open ianhi opened 3 years ago

ianhi commented 3 years ago

Checks should be added to add_edges and add_nodes that the node/edge being added is actually a valid node/edge object and if not we should fail with a clear error message.

Originally posted by @ianhi in https://github.com/QuantStack/ipycytoscape/issues/214#issuecomment-748176164

cc @sven5s