diff --git a/gmatch4py/graph.pyx b/gmatch4py/graph.pyx
index 8d52b2bdf46d872d12113fb036511e57f51fe449..478a530b47794eb4152599ab4c608e6aef6dd854 100644
--- a/gmatch4py/graph.pyx
+++ b/gmatch4py/graph.pyx
@@ -32,7 +32,7 @@ cdef class Graph:
             self.edges_hash_set= set([])
             self.edges_weight={}
             self.edges_hash_map={}
-            self.attr_edges={}
+            self.attr_edges=[]
 
 
         else: