Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fize Jacques
GMatch4py
Commits
412cf758
Commit
412cf758
authored
Aug 21, 2018
by
Fize Jacques
Browse files
Debug GED
parent
ed01db41
Changes
1
Hide whitespace changes
Inline
Side-by-side
gmatch4py/ged/abstract_graph_edit_dist.pyx
View file @
412cf758
...
...
@@ -87,13 +87,13 @@ cdef class AbstractGraphEditDistance(Base):
cdef
np
.
ndarray
comparison_matrix
=
np
.
zeros
((
n
,
n
)).
astype
(
float
)
cdef
int
i
,
j
for
i
in
range
(
n
):
for
j
in
range
(
i
,
n
):
for
j
in
range
(
n
):
g1
,
g2
=
listgs
[
i
],
listgs
[
j
]
f
=
self
.
isAccepted
(
g1
,
i
,
selected
)
if
f
:
comparison_matrix
[
i
,
j
]
=
self
.
distance_ged
(
g1
,
g2
)
else
:
comparison_matrix
[
i
,
j
]
=
np
.
inf
comparison_matrix
[
j
,
i
]
=
comparison_matrix
[
i
,
j
]
#
comparison_matrix[j, i] = comparison_matrix[i, j]
np
.
fill_diagonal
(
comparison_matrix
,
0
)
return
comparison_matrix
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