Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박권수
/
Algorithm_HW5
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2020-10-30 16:05:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7d01e184ade165e3f0a8ccb0c3229028d935c531
7d01e184
1 parent
0141d9db
feature1.0.1 : add something = initalize / fix it
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
HW5_박권수_2015104173.py
HW5_박권수_2015104173.py
View file @
7d01e18
...
...
@@ -32,6 +32,10 @@ def Kruskal(graph) :
edge_list
=
list
(
graph
[
'edges'
])
edge_list
.
sort
()
#초기화한다
for
v
in
graph
[
'vertices'
]
:
make_singleton_set
(
v
)
F
=
set
()
index
=
0
...
...
@@ -60,8 +64,6 @@ graph = {
(
5
,
'D'
,
'E'
),
])
}
for
i
in
range
(
0
,
5
)
:
make_singleton_set
(
i
)
mst
=
Kruskal
(
graph
)
print
(
mst
)
\ No newline at end of file
...
...
Please
register
or
login
to post a comment