diff options
| author | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-02-27 13:41:27 +0100 |
|---|---|---|
| committer | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-02-27 13:41:27 +0100 |
| commit | 1d35821d84c158b58eab5b02185b68219c38a332 (patch) | |
| tree | b58f0e943c68dc5abeba0e9d508692dd37b399c9 /graph | |
| parent | c0e1fbbb371c75d9343a6cb69a57d136bd7a59c6 (diff) | |
cylces -> cycles
Diffstat (limited to 'graph')
| -rw-r--r-- | graph/cycleCounting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graph/cycleCounting.cpp b/graph/cycleCounting.cpp index 9772706..0df464b 100644 --- a/graph/cycleCounting.cpp +++ b/graph/cycleCounting.cpp @@ -1,12 +1,12 @@ constexpr int maxEdges = 128; using cycle = bitset<maxEdges>; -struct cylces { +struct cycles { vector<vector<pair<int, int>>> adj; vector<bool> seen; vector<cycle> paths, base; vector<pair<int, int>> edges; - cylces(int n) : adj(n), seen(n), paths(n) {} + cycles(int n) : adj(n), seen(n), paths(n) {} void addEdge(int u, int v) { adj[u].push_back({v, sz(edges)}); |
