@@ -94,7 +94,7 @@ const fetchConnectedNodes = async (nodeId) => {
9494const nodeExpansion = async (nodeId ) => {
9595 const { nodes: newNodes , relationships: newRels } = await fetchConnectedNodes (nodeId)
9696
97- // Fetches the existing nodes and relationships present in the graph
97+ // Fetches the existing nodes and relationships present in the graph
9898 const existingNodeIds = new Set (nvl .getNodes ().map ((n ) => n .id ))
9999 const existingRelIds = new Set (nvl .getRelationships ().map ((r ) => r .id ))
100100
@@ -127,7 +127,6 @@ const nodeExpansion = async (nodeId) => {
127127 expandedState: expandedNodesMap .value
128128 })
129129 } else {
130-
131130 // Notifies if the node isnt expandable or it is already expanded
132131 q .notify ({
133132 message: ' Node is not expandable' ,
@@ -156,7 +155,7 @@ const nodeUnexpand = (nodeId) => {
156155 .map ((n ) => n .id )
157156 const relIds = expansion .relationships .map ((r ) => r .id )
158157
159- // Removes the nodes and relationships connected to the specified node that are not already expanded
158+ // Removes the nodes and relationships connected to the specified node that are not already expanded
160159 nvl .removeNodesWithIds (nodeIds)
161160 nvl .removeRelationshipsWithIds (relIds)
162161 expandedNodesMap .value .delete (nodeId)
@@ -168,7 +167,6 @@ const nodeUnexpand = (nodeId) => {
168167 expandedState: expandedNodesMap .value
169168 })
170169 } else {
171-
172170 // Notifies if the node isn't unexpandable
173171 q .notify ({
174172 message: ' Node is not un-expandable' ,
@@ -182,7 +180,6 @@ const nodeUnexpand = (nodeId) => {
182180
183181// Deletes the specified node and removes it from the graph
184182const nodeDeletion = (nodeId ) => {
185-
186183 // Gets all relationships connected to the node being deleted
187184 const relIds = props .relationships
188185 .filter ((r ) => r .from === nodeId || r .to === nodeId)
0 commit comments