Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-optimisation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aliaume Lopez
projet-optimisation
Commits
eb869012
Commit
eb869012
authored
Jan 09, 2017
by
Aliaume Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bonne idée
parent
dd23e76c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
approximations.py
approximations.py
+6
-6
No files found.
approximations.py
View file @
eb869012
...
...
@@ -32,14 +32,14 @@ def convert_to_tour(graph,valedges):
while
True
:
iteration
+=
1
print
(
"PARTS: {}"
.
format
(
parts
))
print
(
"INTERIEUR: {}"
.
format
(
interieur
))
#
print ("PARTS: {}".format (parts))
#
print ("INTERIEUR: {}".format(interieur))
arrs
=
[
(
partie
[
i
],
partie
[
i
+
1
])
for
partie
in
parts
for
i
in
range
(
len
(
partie
)
-
1
)
]
#
arrs = [ (partie[i],partie[i+1])
#
for partie in parts
#
for i in range (len(partie)-1) ]
graphe
.
draw
(
chem
=
arrs
,
filename
=
"images/00{}_APPROX_{}_glouton.png"
.
format
(
iteration
,
filename
))
#
graphe.draw(chem=arrs,filename="images/00{}_APPROX_{}_glouton.png".format (iteration,filename))
e
,
v
=
valedges
.
pop
()
#~ print("e",e)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment