MCPcopy
hub / github.com/jwngr/sdow / fetch_outgoing_links_count

Method fetch_outgoing_links_count

sdow/database.py:134–143  ·  view source on GitHub ↗

Returns the sum of outgoing links of the provided page IDs. Args: page_ids: A list of page IDs whose outgoing links to count. Returns: int: The count of outgoing links.

(self, page_ids)

Source from the content-addressed store, hash-verified

132 return breadth_first_search(source_page_id, target_page_id, self)
133
134 def fetch_outgoing_links_count(self, page_ids):
135 """Returns the sum of outgoing links of the provided page IDs.
136
137 Args:
138 page_ids: A list of page IDs whose outgoing links to count.
139
140 Returns:
141 int: The count of outgoing links.
142 """
143 return self.fetch_links_count_helper(page_ids, 'outgoing_links_count')
144
145 def fetch_incoming_links_count(self, page_ids):
146 """Returns the sum of incoming links for the provided page IDs.

Callers 1

breadth_first_searchFunction · 0.80

Calls 1

Tested by

no test coverage detected