@@ -480,6 +480,46 @@ def from_(cls, value: Any):
480480}
481481
482482
483+ class BLISSSplittingHeuristics (IntEnum ):
484+ """Python counterpart of an ``igraph_bliss_sh_t`` enum."""
485+
486+ F = 0
487+ FL = 1
488+ FS = 2
489+ FM = 3
490+ FLM = 4
491+ FSM = 5
492+
493+ _string_map : ClassVar [dict [str , BLISSSplittingHeuristics ]]
494+
495+ @classmethod
496+ def from_ (cls , value : Any ):
497+ """Converts an arbitrary Python object into this enum.
498+
499+ Raises:
500+ ValueError: if the object cannot be converted
501+ """
502+ if isinstance (value , BLISSSplittingHeuristics ):
503+ return value
504+ elif isinstance (value , int ):
505+ return cls (value )
506+ else :
507+ try :
508+ return cls ._string_map [value ]
509+ except KeyError :
510+ raise ValueError (f"{ value !r} cannot be converted to BLISSSplittingHeuristics" ) from None
511+
512+
513+ BLISSSplittingHeuristics ._string_map = {
514+ 'f' : BLISSSplittingHeuristics .F ,
515+ 'fl' : BLISSSplittingHeuristics .FL ,
516+ 'flm' : BLISSSplittingHeuristics .FLM ,
517+ 'fm' : BLISSSplittingHeuristics .FM ,
518+ 'fs' : BLISSSplittingHeuristics .FS ,
519+ 'fsm' : BLISSSplittingHeuristics .FSM ,
520+ }
521+
522+
483523class Multiple (IntEnum ):
484524 """Python counterpart of an ``igraph_multiple_t`` enum."""
485525
@@ -992,44 +1032,6 @@ def from_(cls, value: Any):
9921032}
9931033
9941034
995- class FileFormat (IntEnum ):
996- """Python counterpart of an ``igraph_fileformat_type_t`` enum."""
997-
998- EDGELIST = 0
999- NCOL = 1
1000- PAJEK = 2
1001- LGL = 3
1002- GRAPHML = 4
1003-
1004- _string_map : ClassVar [dict [str , FileFormat ]]
1005-
1006- @classmethod
1007- def from_ (cls , value : Any ):
1008- """Converts an arbitrary Python object into this enum.
1009-
1010- Raises:
1011- ValueError: if the object cannot be converted
1012- """
1013- if isinstance (value , FileFormat ):
1014- return value
1015- elif isinstance (value , int ):
1016- return cls (value )
1017- else :
1018- try :
1019- return cls ._string_map [value ]
1020- except KeyError :
1021- raise ValueError (f"{ value !r} cannot be converted to FileFormat" ) from None
1022-
1023-
1024- FileFormat ._string_map = {
1025- 'edgelist' : FileFormat .EDGELIST ,
1026- 'graphml' : FileFormat .GRAPHML ,
1027- 'lgl' : FileFormat .LGL ,
1028- 'ncol' : FileFormat .NCOL ,
1029- 'pajek' : FileFormat .PAJEK ,
1030- }
1031-
1032-
10331035class Rewiring (IntEnum ):
10341036 """Python counterpart of an ``igraph_rewiring_t`` enum."""
10351037
@@ -1441,6 +1443,8 @@ class FeedbackArcSetAlgorithm(IntEnum):
14411443
14421444 EXACT_IP = 0
14431445 APPROX_EADES = 1
1446+ EXACT_IP_CG = 2
1447+ EXACT_IP_TI = 3
14441448
14451449 _string_map : ClassVar [dict [str , FeedbackArcSetAlgorithm ]]
14461450
@@ -1465,6 +1469,38 @@ def from_(cls, value: Any):
14651469FeedbackArcSetAlgorithm ._string_map = {
14661470 'approx_eades' : FeedbackArcSetAlgorithm .APPROX_EADES ,
14671471 'exact_ip' : FeedbackArcSetAlgorithm .EXACT_IP ,
1472+ 'exact_ip_cg' : FeedbackArcSetAlgorithm .EXACT_IP_CG ,
1473+ 'exact_ip_ti' : FeedbackArcSetAlgorithm .EXACT_IP_TI ,
1474+ }
1475+
1476+
1477+ class FvsAlgorithm (IntEnum ):
1478+ """Python counterpart of an ``igraph_fvs_algorithm_t`` enum."""
1479+
1480+ IP = 0
1481+
1482+ _string_map : ClassVar [dict [str , FvsAlgorithm ]]
1483+
1484+ @classmethod
1485+ def from_ (cls , value : Any ):
1486+ """Converts an arbitrary Python object into this enum.
1487+
1488+ Raises:
1489+ ValueError: if the object cannot be converted
1490+ """
1491+ if isinstance (value , FvsAlgorithm ):
1492+ return value
1493+ elif isinstance (value , int ):
1494+ return cls (value )
1495+ else :
1496+ try :
1497+ return cls ._string_map [value ]
1498+ except KeyError :
1499+ raise ValueError (f"{ value !r} cannot be converted to FvsAlgorithm" ) from None
1500+
1501+
1502+ FvsAlgorithm ._string_map = {
1503+ 'ip' : FvsAlgorithm .IP ,
14681504}
14691505
14701506
@@ -1644,7 +1680,7 @@ class ChungLu(IntEnum):
16441680 """Python counterpart of an ``igraph_chung_lu_t`` enum."""
16451681
16461682 ORIGINAL = 0
1647- GRG = 1
1683+ MAXENT = 1
16481684 NR = 2
16491685
16501686 _string_map : ClassVar [dict [str , ChungLu ]]
@@ -1668,7 +1704,7 @@ def from_(cls, value: Any):
16681704
16691705
16701706ChungLu ._string_map = {
1671- 'grg ' : ChungLu .GRG ,
1707+ 'maxent ' : ChungLu .MAXENT ,
16721708 'nr' : ChungLu .NR ,
16731709 'original' : ChungLu .ORIGINAL ,
16741710}
@@ -1706,6 +1742,42 @@ def from_(cls, value: Any):
17061742}
17071743
17081744
1745+ class MstAlgorithm (IntEnum ):
1746+ """Python counterpart of an ``igraph_mst_algorithm_t`` enum."""
1747+
1748+ AUTOMATIC = 0
1749+ UNWEIGHTED = 1
1750+ PRIM = 2
1751+ KRUSKAL = 3
1752+
1753+ _string_map : ClassVar [dict [str , MstAlgorithm ]]
1754+
1755+ @classmethod
1756+ def from_ (cls , value : Any ):
1757+ """Converts an arbitrary Python object into this enum.
1758+
1759+ Raises:
1760+ ValueError: if the object cannot be converted
1761+ """
1762+ if isinstance (value , MstAlgorithm ):
1763+ return value
1764+ elif isinstance (value , int ):
1765+ return cls (value )
1766+ else :
1767+ try :
1768+ return cls ._string_map [value ]
1769+ except KeyError :
1770+ raise ValueError (f"{ value !r} cannot be converted to MstAlgorithm" ) from None
1771+
1772+
1773+ MstAlgorithm ._string_map = {
1774+ 'automatic' : MstAlgorithm .AUTOMATIC ,
1775+ 'kruskal' : MstAlgorithm .KRUSKAL ,
1776+ 'prim' : MstAlgorithm .PRIM ,
1777+ 'unweighted' : MstAlgorithm .UNWEIGHTED ,
1778+ }
1779+
1780+
17091781class LpaVariant (IntEnum ):
17101782 """Python counterpart of an ``igraph_lpa_variant_t`` enum."""
17111783
@@ -2028,46 +2100,6 @@ def from_(cls, value: Any):
20282100}
20292101
20302102
2031- class BLISSSplittingHeuristics (IntEnum ):
2032- """Python counterpart of an ``igraph_bliss_sh_t`` enum."""
2033-
2034- F = 0
2035- FL = 1
2036- FS = 2
2037- FM = 3
2038- FLM = 4
2039- FSM = 5
2040-
2041- _string_map : ClassVar [dict [str , BLISSSplittingHeuristics ]]
2042-
2043- @classmethod
2044- def from_ (cls , value : Any ):
2045- """Converts an arbitrary Python object into this enum.
2046-
2047- Raises:
2048- ValueError: if the object cannot be converted
2049- """
2050- if isinstance (value , BLISSSplittingHeuristics ):
2051- return value
2052- elif isinstance (value , int ):
2053- return cls (value )
2054- else :
2055- try :
2056- return cls ._string_map [value ]
2057- except KeyError :
2058- raise ValueError (f"{ value !r} cannot be converted to BLISSSplittingHeuristics" ) from None
2059-
2060-
2061- BLISSSplittingHeuristics ._string_map = {
2062- 'f' : BLISSSplittingHeuristics .F ,
2063- 'fl' : BLISSSplittingHeuristics .FL ,
2064- 'flm' : BLISSSplittingHeuristics .FLM ,
2065- 'fm' : BLISSSplittingHeuristics .FM ,
2066- 'fs' : BLISSSplittingHeuristics .FS ,
2067- 'fsm' : BLISSSplittingHeuristics .FSM ,
2068- }
2069-
2070-
20712103class LaplacianNormalization (IntEnum ):
20722104 """Python counterpart of an ``igraph_laplacian_normalization_t`` enum."""
20732105
@@ -2161,8 +2193,8 @@ def from_(cls, value: Any):
21612193 'ErdosRenyiType' ,
21622194 'ErrorCode' ,
21632195 'FeedbackArcSetAlgorithm' ,
2164- 'FileFormat' ,
21652196 'FloydWarshallAlgorithm' ,
2197+ 'FvsAlgorithm' ,
21662198 'GetAdjacency' ,
21672199 'GreedyColoringHeuristics' ,
21682200 'ImitateAlgorithm' ,
@@ -2174,6 +2206,7 @@ def from_(cls, value: Any):
21742206 'Loops' ,
21752207 'LpaVariant' ,
21762208 'MatrixStorage' ,
2209+ 'MstAlgorithm' ,
21772210 'Multiple' ,
21782211 'NeighborMode' ,
21792212 'Optimality' ,
0 commit comments