Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
verktoy
PyMetric
Commits
dbce3ce5
Commit
dbce3ce5
authored
Dec 02, 2019
by
Runar Borge
Browse files
Merge branch 'github/fork/runborg/info_longest' into 'master'
Fixes
#9
integer displayed as float See merge request
!11
parents
cdce87ad
265ef826
Changes
1
Hide whitespace changes
Inline
Side-by-side
model.py
View file @
dbce3ce5
...
...
@@ -337,7 +337,7 @@ class Model:
for
(
u
,
v
)
in
sp
[:
top
]:
if
(
u
,
v
)
in
seen
and
pc
[(
u
,
v
)]
==
pc
[(
v
,
u
)]:
continue
retval
.
append
(
"%s (%
s
)"
%
(
" <-> "
.
join
([
u
,
v
]),
pc
[(
u
,
v
)]))
retval
.
append
(
"%s (%
d
)"
%
(
" <-> "
.
join
([
u
,
v
]),
pc
[(
u
,
v
)]))
seen
[(
u
,
v
)]
=
True
if
(
v
,
u
)
in
sp
and
pc
[(
u
,
v
)]
==
pc
[(
v
,
u
)]:
seen
[(
v
,
u
)]
=
True
...
...
@@ -810,7 +810,7 @@ class Simulation:
seen
=
{}
for
(
u
,
v
)
in
sp
[:
top
]:
if
(
u
,
v
)
in
seen
and
pc
[(
u
,
v
)]
==
pc
[(
v
,
u
)]:
continue
retval
.
append
(
"%s (%
s
)"
%
(
" <-> "
.
join
([
u
,
v
]),
pc
[(
u
,
v
)]))
retval
.
append
(
"%s (%
d
)"
%
(
" <-> "
.
join
([
u
,
v
]),
pc
[(
u
,
v
)]))
seen
[(
u
,
v
)]
=
True
if
(
v
,
u
)
in
sp
and
pc
[(
u
,
v
)]
==
pc
[(
v
,
u
)]:
seen
[(
v
,
u
)]
=
True
...
...
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