(self, vertices: set[int], edges: Mapping[EdgeT, int])
| 42 | """ |
| 43 | |
| 44 | def __init__(self, vertices: set[int], edges: Mapping[EdgeT, int]) -> None: |
| 45 | self.vertices: set[int] = vertices |
| 46 | self.edges: dict[EdgeT, int] = { |
| 47 | (min(edge), max(edge)): weight for edge, weight in edges.items() |
| 48 | } |
| 49 | |
| 50 | def add_edge(self, edge: EdgeT, weight: int) -> None: |
| 51 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected