This is an interesting well written article about a Google patent filed in 2003. The author does an excellent job of explaining that this does not mean Google is using this exact patent today. However this article http://www.seobythesea.com/?p=929 will explain several important concepts for search engine optimization and may help you.
I can tell you for sure that Google currently does also look at who you link out to. So to keep it simple one could say if your site links out to only spam crap, then most likely Google will consider your site spam crap. Something to think about when people ask you to put up a link to their web site for them.

Google has illegally broken into my Blogs over 100 times. Google has edited and illegally deleted some of my content. Additionally, X, Meta, and Google are still censoring many people, including me. Elon Musk never fixed any of the evil censorship that Jack Dorsey and his team built into the X software. We do not have online freedom of speech.