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

Method fetch_outgoing_links

sdow/database.py:174–185  ·  view source on GitHub ↗

Returns a list of tuples of page IDs representing outgoing links from the list of provided page IDs to other pages. Args: page_ids: A list of page IDs whose outgoing links to fetch. Returns: list(int, int): A lists of integer tuples representing outgoing links from the list

(self, page_ids)

Source from the content-addressed store, hash-verified

172 return self.sdow_cursor.fetchone()[0]
173
174 def fetch_outgoing_links(self, page_ids):
175 """Returns a list of tuples of page IDs representing outgoing links from the list of provided
176 page IDs to other pages.
177
178 Args:
179 page_ids: A list of page IDs whose outgoing links to fetch.
180
181 Returns:
182 list(int, int): A lists of integer tuples representing outgoing links from the list of
183 provided page IDs to other pages.
184 """
185 return self.fetch_links_helper(page_ids, 'outgoing_links')
186
187 def fetch_incoming_links(self, page_ids):
188 """Returns a list of tuples of page IDs representing incoming links from the list of provided

Callers 1

breadth_first_searchFunction · 0.80

Calls 1

fetch_links_helperMethod · 0.95

Tested by

no test coverage detected