msokolov commented on PR #14022:
URL: https://github.com/apache/lucene/pull/14022#issuecomment-2546257985

   > With this change, we require that connectedNodes should not be set for any 
nodes. This is slightly different from before, where you could pass a partially 
set connectedNodes bitset and it'll get updated with all the values.
   
   I'm not sure -- doesn't it still expect that connectedNodes is preserved 
between calls? The overall flow is like: find the next not-connected node, and 
traverse all of its connections -- it *might* run into an already-connected 
node (marked as connected in the bitset) because the relation is asymmetric. We 
used to continue traversing anyway although it's kind of pointless. Maybe it 
would tell you the size of the "rooted" component of the graph, but we don't 
really use this size information, so I think it's OK to early-terminate once 
you find something that is already rooted in an earlier component. And we still 
expect to remember the visited set across calls. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to