4747from sage .combinat .cluster_algebra_quiver .mutation_class import _principal_part , _digraph_mutate , _matrix_to_digraph , _dg_canonical_form , _mutation_class_iter , _digraph_to_dig6 , _dig6_to_matrix
4848from sage .combinat .cluster_algebra_quiver .mutation_type import _connected_mutation_type , _mutation_type_from_data , is_mutation_finite
4949from sage .combinat .cluster_algebra_quiver .interact import cluster_interact
50- from sage .geometry .fan import Fan
5150from sage .graphs .digraph import DiGraph
5251from sage .graphs .graph import Graph
5352from sage .graphs .views import EdgesView
@@ -2187,7 +2186,7 @@ def cardinal_RG(d):
21872186 poly = (- 1 )** N * ((1 - q ) * Reineke_submat .det ()).numerator ()
21882187 return poly (q ** 2 ) # replacing q by v**2
21892188
2190- def d_vector_fan (self ) -> Fan :
2189+ def d_vector_fan (self ):
21912190 r"""
21922191 Return the d-vector fan associated with the quiver.
21932192
@@ -2225,6 +2224,8 @@ def d_vector_fan(self) -> Fan:
22252224 ...
22262225 ValueError: only makes sense for quivers of finite type
22272226 """
2227+ from sage .geometry .fan import Fan
2228+
22282229 if not self .is_finite ():
22292230 raise ValueError ('only makes sense for quivers of finite type' )
22302231
@@ -2235,7 +2236,7 @@ def d_vector_fan(self) -> Fan:
22352236 return Fan ([Cone (s .d_matrix ().columns ())
22362237 for s in seed .mutation_class ()])
22372238
2238- def g_vector_fan (self ) -> Fan :
2239+ def g_vector_fan (self ):
22392240 r"""
22402241 Return the g-vector fan associated with the quiver.
22412242
@@ -2275,6 +2276,7 @@ def g_vector_fan(self) -> Fan:
22752276 """
22762277 from .cluster_seed import ClusterSeed
22772278 from sage .geometry .cone import Cone
2279+ from sage .geometry .fan import Fan
22782280
22792281 if not (self .is_finite ()):
22802282 raise ValueError ('only supported for quivers of finite type' )
0 commit comments