@@ -480,6 +480,46 @@ def from_(cls, value: Any):
480
480
}
481
481
482
482
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
+
483
523
class Multiple (IntEnum ):
484
524
"""Python counterpart of an ``igraph_multiple_t`` enum."""
485
525
@@ -992,44 +1032,6 @@ def from_(cls, value: Any):
992
1032
}
993
1033
994
1034
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
-
1033
1035
class Rewiring (IntEnum ):
1034
1036
"""Python counterpart of an ``igraph_rewiring_t`` enum."""
1035
1037
@@ -1441,6 +1443,8 @@ class FeedbackArcSetAlgorithm(IntEnum):
1441
1443
1442
1444
EXACT_IP = 0
1443
1445
APPROX_EADES = 1
1446
+ EXACT_IP_CG = 2
1447
+ EXACT_IP_TI = 3
1444
1448
1445
1449
_string_map : ClassVar [dict [str , FeedbackArcSetAlgorithm ]]
1446
1450
@@ -1465,6 +1469,38 @@ def from_(cls, value: Any):
1465
1469
FeedbackArcSetAlgorithm ._string_map = {
1466
1470
'approx_eades' : FeedbackArcSetAlgorithm .APPROX_EADES ,
1467
1471
'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 ,
1468
1504
}
1469
1505
1470
1506
@@ -1644,7 +1680,7 @@ class ChungLu(IntEnum):
1644
1680
"""Python counterpart of an ``igraph_chung_lu_t`` enum."""
1645
1681
1646
1682
ORIGINAL = 0
1647
- GRG = 1
1683
+ MAXENT = 1
1648
1684
NR = 2
1649
1685
1650
1686
_string_map : ClassVar [dict [str , ChungLu ]]
@@ -1668,7 +1704,7 @@ def from_(cls, value: Any):
1668
1704
1669
1705
1670
1706
ChungLu ._string_map = {
1671
- 'grg ' : ChungLu .GRG ,
1707
+ 'maxent ' : ChungLu .MAXENT ,
1672
1708
'nr' : ChungLu .NR ,
1673
1709
'original' : ChungLu .ORIGINAL ,
1674
1710
}
@@ -1706,6 +1742,42 @@ def from_(cls, value: Any):
1706
1742
}
1707
1743
1708
1744
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
+
1709
1781
class LpaVariant (IntEnum ):
1710
1782
"""Python counterpart of an ``igraph_lpa_variant_t`` enum."""
1711
1783
@@ -2028,46 +2100,6 @@ def from_(cls, value: Any):
2028
2100
}
2029
2101
2030
2102
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
-
2071
2103
class LaplacianNormalization (IntEnum ):
2072
2104
"""Python counterpart of an ``igraph_laplacian_normalization_t`` enum."""
2073
2105
@@ -2161,8 +2193,8 @@ def from_(cls, value: Any):
2161
2193
'ErdosRenyiType' ,
2162
2194
'ErrorCode' ,
2163
2195
'FeedbackArcSetAlgorithm' ,
2164
- 'FileFormat' ,
2165
2196
'FloydWarshallAlgorithm' ,
2197
+ 'FvsAlgorithm' ,
2166
2198
'GetAdjacency' ,
2167
2199
'GreedyColoringHeuristics' ,
2168
2200
'ImitateAlgorithm' ,
@@ -2174,6 +2206,7 @@ def from_(cls, value: Any):
2174
2206
'Loops' ,
2175
2207
'LpaVariant' ,
2176
2208
'MatrixStorage' ,
2209
+ 'MstAlgorithm' ,
2177
2210
'Multiple' ,
2178
2211
'NeighborMode' ,
2179
2212
'Optimality' ,
0 commit comments