Commit e2434cdd authored by Fize Jacques's avatar Fize Jacques
Browse files

mod Travis.yml +test.py

No related merge requests found
Showing with 3 additions and 11 deletions
+3 -11
...@@ -10,4 +10,4 @@ install: ...@@ -10,4 +10,4 @@ install:
- python setup.py build_ext --inplace - python setup.py build_ext --inplace
script: script:
- pytest - pytest gmatch4py/test/test.py
\ No newline at end of file \ No newline at end of file
...@@ -4,8 +4,7 @@ import pytest ...@@ -4,8 +4,7 @@ import pytest
def nimport(): def nimport():
# Gmatch4py use networkx graph # Gmatch4py use networkx graph
import networkx as nx import networkx as nx
# import the GED using the munkres algorithm
import gmatch4py as gm
def test_import(): def test_import():
nimport() nimport()
...@@ -13,14 +12,7 @@ def test_import(): ...@@ -13,14 +12,7 @@ def test_import():
def ged(): def ged():
import networkx as nx import networkx as nx
# import the GED using the munkres algorithm # import the GED using the munkres algorithm
import gmatch4py as gm
g1=nx.complete_bipartite_graph(5,4)
g2=nx.complete_bipartite_graph(6,4)
ged=gm.GraphEditDistance(1,1,1,1) # all edit costs are equal to 1
assert ged.compare([g1,g2],None).all() == ged.compare([g1,g2],None).all()
ged=gm.HED(1,1,1,1) # all edit costs are equal to 1
assert ged.compare([g1,g2],None).all() == ged.compare([g1,g2],None).all()
def test_ged(): def test_ged():
ged() ged()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment