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.
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'
andedge.id2 === A.id
. i.e. where node A is the target of theuses
relationship.If node A is selectedand user chooses 'Calls by it', then find all edges where
edgeKind === 'uses'
andedge.id1 === A.id
, i.e. where node A is the source of theuses
relationship.