MCPcopy
hub / github.com/tirth8205/code-review-graph / get_all_nodes

Method get_all_nodes

code_review_graph/graph.py:338–346  ·  view source on GitHub ↗

Return all nodes, optionally excluding File nodes.

(self, exclude_files: bool = True)

Source from the content-addressed store, hash-verified

336 return [self._row_to_node(r) for r in rows]
337
338 def get_all_nodes(self, exclude_files: bool = True) -> list[GraphNode]:
339 """Return all nodes, optionally excluding File nodes."""
340 if exclude_files:
341 rows = self._conn.execute(
342 "SELECT * FROM nodes WHERE kind != 'File'"
343 ).fetchall()
344 else:
345 rows = self._conn.execute("SELECT * FROM nodes").fetchall()
346 return [self._row_to_node(r) for r in rows]
347
348 def get_edges_by_source(self, qualified_name: str) -> list[GraphEdge]:
349 rows = self._conn.execute(

Callers 6

find_hub_nodesFunction · 0.80
find_bridge_nodesFunction · 0.80
find_knowledge_gapsFunction · 0.80
detect_communitiesFunction · 0.80
take_snapshotFunction · 0.80

Calls 1

_row_to_nodeMethod · 0.95

Tested by

no test coverage detected