We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
datastructs_and_algorithm/source/graph/kruskal/udg/java/ListUDG.java
Line 373 in 61485e4
The text was updated successfully, but these errors were encountered:
No branches or pull requests
datastructs_and_algorithm/source/graph/kruskal/udg/java/ListUDG.java
Line 373 in 61485e4
此数组初始化大小应该为顶点个数,而非边条数,因为在无向连通图中,边的条数最小可以为顶点个数减一(此时该无向连通图就是一棵树),故当一个无向连通图本身就是一棵树时,获取索引最大的顶点的终点,会有数组越界的异常。
The text was updated successfully, but these errors were encountered: