Commit 8f502649 authored by Fize Jacques's avatar Fize Jacques

add travis.yml support + test files

parent 761f2e74
language: python
python:
- "3.6"
notifications:
email: false
install:
- pip install -q cython numpy networkx scipy scikit-learn pandas
- python setup.py build_ext --inplace
script:
- pytest gmatch4py/test/test.py
\ No newline at end of file
......@@ -305,17 +305,4 @@ cdef class Graph:
return Graph(G,self.node_attr_key,self.edge_attr_key)
cpdef test(self):
print(self.has_node("1"))
print(self.has_edge("1","2"))
G2=Graph(["1","2","3","4"],[("1","2"),("2","3"),("1","4")],[2,2,1],[2,2,1])
print(self.size_node_union(G2))
print(self.size_node_intersect(G2))
print(self.size_edge_union(G2))
print(self.size_edge_intersect(G2))
if __name__ == "__main__":
G=Graph(["1","2","3"],[("1","2"),("2","3")],[1,2,1],[1,2,1])
G.test()
\ No newline at end of file
import pytest
def nimport():
# Gmatch4py use networkx graph
import networkx as nx
def test_import():
nimport()
def ged():
import networkx as nx
# import the GED using the munkres algorithm
def test_ged():
ged()
\ No newline at end of file
Markdown is supported
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