MCPcopy Create free account
hub / github.com/THUDM/AgentBench / __init__

Method __init__

src/utils/max_flow.py:7–12  ·  view source on GitHub ↗

edges: {(source, target): edge_weight}}

(self, node_count: int, edges: Dict[Tuple[int, int], int])

Source from the content-addressed store, hash-verified

5
6class Graph:
7 def __init__(self, node_count: int, edges: Dict[Tuple[int, int], int]):
8 """
9 edges: {(source, target): edge_weight}}
10 """
11 self.node_count = node_count
12 self.edges = edges
13
14 def iterate_edges(self) -> Iterable[Tuple[int, int, int]]:
15 for (source, target), weight in self.edges.items():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected