CANVE / canve-viz

CANVE visualizer UI
3 stars 1 forks source link

Calls interaction #27

Closed danielabar closed 8 years ago

danielabar commented 8 years ago

Implement "Calls of it" and "Calls by it" graph interaction.

User will select a node in the graph, then select Calls "of it" or "by it" from the menu.

Then the graph should respond by adding in all the nodes that the selected node is called by or calls respectively.

Also consider that this action should be undo-able.

A few more details:

If node A is selected, and user chooses 'Calls of it', then find all edges where edgeKind === 'uses' and edge.id2 === A.id. i.e. where node A is the target of the uses relationship.

If node A is selectedand user chooses 'Calls by it', then find all edges where edgeKind === 'uses' and edge.id1 === A.id, i.e. where node A is the source of the uses relationship.

danielabar commented 8 years ago

Calls of it = B in edges ordered A uses B Extensions of it = B in edges ordered A extends B Ownership of it = B in edges ordered A declares member B