Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Vertex
- {
- ...
- void addEdge(Vertex* neighbor, int editDistance)
- {
- Edge newEdge;
- newEdge.adjVertex = neighbor;
- newEdge.weight = editDistance;
- edges.push_back(newEdge);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement