@@ -140,13 +140,14 @@ def from_(cls, value: Any):
140140}
141141
142142
143- class ColoringGreedy (IntEnum ):
143+ class GreedyColoringHeuristics (IntEnum ):
144144 """Python counterpart of an ``igraph_coloring_greedy_t`` enum."""
145145
146146 COLORED_NEIGHBORS = 0
147147 DSATUR = 1
148+ NEIGHBORS = COLORED_NEIGHBORS
148149
149- _string_map : ClassVar [dict [str , ColoringGreedy ]]
150+ _string_map : ClassVar [dict [str , GreedyColoringHeuristics ]]
150151
151152 @classmethod
152153 def from_ (cls , value : Any ):
@@ -155,20 +156,21 @@ def from_(cls, value: Any):
155156 Raises:
156157 ValueError: if the object cannot be converted
157158 """
158- if isinstance (value , ColoringGreedy ):
159+ if isinstance (value , GreedyColoringHeuristics ):
159160 return value
160161 elif isinstance (value , int ):
161162 return cls (value )
162163 else :
163164 try :
164165 return cls ._string_map [value ]
165166 except KeyError :
166- raise ValueError (f"{ value !r} cannot be converted to ColoringGreedy " ) from None
167+ raise ValueError (f"{ value !r} cannot be converted to GreedyColoringHeuristics " ) from None
167168
168169
169- ColoringGreedy ._string_map = {
170- 'colored_neighbors' : ColoringGreedy .COLORED_NEIGHBORS ,
171- 'dsatur' : ColoringGreedy .DSATUR ,
170+ GreedyColoringHeuristics ._string_map = {
171+ 'colored_neighbors' : GreedyColoringHeuristics .COLORED_NEIGHBORS ,
172+ 'dsatur' : GreedyColoringHeuristics .DSATUR ,
173+ 'neighbors' : GreedyColoringHeuristics .COLORED_NEIGHBORS ,
172174}
173175
174176
@@ -820,13 +822,13 @@ def from_(cls, value: Any):
820822}
821823
822824
823- class ErdosRenyi (IntEnum ):
825+ class ErdosRenyiType (IntEnum ):
824826 """Python counterpart of an ``igraph_erdos_renyi_t`` enum."""
825827
826828 GNP = 0
827829 GNM = 1
828830
829- _string_map : ClassVar [dict [str , ErdosRenyi ]]
831+ _string_map : ClassVar [dict [str , ErdosRenyiType ]]
830832
831833 @classmethod
832834 def from_ (cls , value : Any ):
@@ -835,20 +837,20 @@ def from_(cls, value: Any):
835837 Raises:
836838 ValueError: if the object cannot be converted
837839 """
838- if isinstance (value , ErdosRenyi ):
840+ if isinstance (value , ErdosRenyiType ):
839841 return value
840842 elif isinstance (value , int ):
841843 return cls (value )
842844 else :
843845 try :
844846 return cls ._string_map [value ]
845847 except KeyError :
846- raise ValueError (f"{ value !r} cannot be converted to ErdosRenyi " ) from None
848+ raise ValueError (f"{ value !r} cannot be converted to ErdosRenyiType " ) from None
847849
848850
849- ErdosRenyi ._string_map = {
850- 'gnm' : ErdosRenyi .GNM ,
851- 'gnp' : ErdosRenyi .GNP ,
851+ ErdosRenyiType ._string_map = {
852+ 'gnm' : ErdosRenyiType .GNM ,
853+ 'gnp' : ErdosRenyiType .GNP ,
852854}
853855
854856
@@ -1540,6 +1542,8 @@ class LayoutGrid(IntEnum):
15401542 GRID = 0
15411543 NOGRID = 1
15421544 AUTOGRID = 2
1545+ NO_GRID = NOGRID
1546+ AUTO_GRID = AUTOGRID
15431547
15441548 _string_map : ClassVar [dict [str , LayoutGrid ]]
15451549
@@ -1562,8 +1566,10 @@ def from_(cls, value: Any):
15621566
15631567
15641568LayoutGrid ._string_map = {
1569+ 'auto_grid' : LayoutGrid .AUTOGRID ,
15651570 'autogrid' : LayoutGrid .AUTOGRID ,
15661571 'grid' : LayoutGrid .GRID ,
1572+ 'no_grid' : LayoutGrid .NOGRID ,
15671573 'nogrid' : LayoutGrid .NOGRID ,
15681574}
15691575
@@ -2072,7 +2078,6 @@ def from_(cls, value: Any):
20722078 'AttributeType' ,
20732079 'BLISSSplittingHeuristics' ,
20742080 'BarabasiAlgorithm' ,
2075- 'ColoringGreedy' ,
20762081 'CommunityComparison' ,
20772082 'Connectedness' ,
20782083 'DRLLayoutPreset' ,
@@ -2081,12 +2086,13 @@ def from_(cls, value: Any):
20812086 'EdgeOrder' ,
20822087 'EdgeSequenceType' ,
20832088 'EigenAlgorithm' ,
2084- 'ErdosRenyi ' ,
2089+ 'ErdosRenyiType ' ,
20852090 'ErrorCode' ,
20862091 'FeedbackArcSetAlgorithm' ,
20872092 'FileFormat' ,
20882093 'FloydWarshallAlgorithm' ,
20892094 'GetAdjacency' ,
2095+ 'GreedyColoringHeuristics' ,
20902096 'ImitateAlgorithm' ,
20912097 'LaplacianNormalization' ,
20922098 'LaplacianSpectralEmbeddingType' ,
0 commit comments