Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ add_edge
Method
add_edge
HackerEarth_problems/New Friends/solution.cpp:59–65 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
57
}
58
59
void add_edge(int v, int u, long long cap) {
60
edges.emplace_back(v, u, cap);
61
edges.emplace_back(u, v, 0);
62
adj[v].push_back(m);
63
adj[u].push_back(m + 1);
64
m += 2;
65
}
66
67
bool bfs() {
68
while (!q.empty()) {
Callers
1
tc
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected