-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmcr_py.pyi
56 lines (39 loc) · 1.18 KB
/
mcr_py.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from typing import Any, Dict, List, Optional, Union
PyBags = dict[int, list[PyLabel]]
class GraphCache:
def __init__(self) -> None:
...
def set_graph(self, raw_edges: List[Dict[str, Any]]) -> None:
...
def set_node_weights(self, node_weights: Dict[int, List[int]]) -> None:
...
def summary(self) -> None:
...
def validate_node_id(self, node_id: int) -> None:
...
def get_edge_weights(self, start_node_id: int, end_node_id: int) -> List[int]:
...
class PyLabel:
values: List[int]
hidden_values: List[int]
path: List[int]
node_id: int
def run_mlc(graph_cache: GraphCache, start_node_id: int) -> PyBags:
...
def run_mlc_with_node_and_time(
graph_cache: GraphCache,
start_node_id: int,
time: int,
disable_paths: Optional[bool] = None,
update_label_func: Optional[str] = None,
enable_limit: Optional[bool] = None,
) -> PyBags:
...
def run_mlc_with_bags(
graph_cache: GraphCache,
bags: Dict[int, List[Union[PyLabel, Any]]],
update_label_func: Optional[str] = None,
disable_paths: Optional[bool] = None,
enable_limit: Optional[bool] = None,
) -> PyBags:
...