-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
N floyd warshall #16
base: main
Are you sure you want to change the base?
N floyd warshall #16
Conversation
public: | ||
using Vertex = T; | ||
|
||
struct Edge { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мне все-таки кажется что ребро должно содержать from, to, weight, потому что вы его в MST заходите отдать наружу, и там такие огрызки класса не проканают
давайте договоримся, что во всех 5 задачах класс Edge должен быть в графе одинаковым
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так и сделал. Теперь ребро имеет одинаковую структуру.
0.95 |
N_FloydWarshall/main.cpp
Outdated
for (size_t i{0}; i < graph.Size(); ++i) { | ||
for (size_t j{0}; j < graph.Size(); ++j) { | ||
for (size_t k{0}; k < graph.Size(); ++k) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да и назовите нормально уж чего вы их обошли стороной)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Назвал.
@ZhNV2