Skip to content

Commit 13d4910

Browse files
authored
add edge list as well
Added usage example and time complexity comment.
1 parent 17e6103 commit 13d4910

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

library/graphs/euler_path.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#pragma once
22
//! @code
33
//! vector<basic_string<array<int, 2>>> adj(n);
4+
//! vector<pii> edges(m);
45
//! rep(i, 0, m) {
56
//! int u, v;
67
//! cin >> u >> v;
78
//! u--, v--;
89
//! adj[u] += {v, i};
10+
//! edges[i] = {u, v};
911
//! }
1012
//! vector<pii> path = euler_path(adj, m, source);
1113
//! @endcode

0 commit comments

Comments
 (0)