|
1 | 1 | from _typeshed import Incomplete |
2 | | -from collections.abc import Generator |
| 2 | +from collections.abc import Callable, Generator, Hashable, Iterable |
| 3 | +from typing import Any |
3 | 4 |
|
4 | 5 | __all__ = ["ISMAGS"] |
5 | 6 |
|
| 7 | +def are_all_equal(iterable: Iterable[Any]) -> bool: ... |
| 8 | +def make_partition( |
| 9 | + items: Iterable[Hashable], test: Callable[[Hashable, Hashable], bool], check: bool = True |
| 10 | +) -> list[set[Incomplete]]: ... |
| 11 | +def node_to_part_ID_dict(partition: Iterable[Iterable[Incomplete]]) -> dict[Incomplete, int]: ... |
| 12 | +def color_degree_by_node(G, n_colors, e_colors): ... |
| 13 | + |
| 14 | +class EdgeLookup: |
| 15 | + edge_dict: Incomplete |
| 16 | + def __init__(self, edge_dict) -> None: ... |
| 17 | + def __getitem__(self, edge): ... |
| 18 | + def items(self): ... |
| 19 | + |
6 | 20 | class ISMAGS: |
7 | 21 | graph: Incomplete |
8 | 22 | subgraph: Incomplete |
9 | | - node_equality: Incomplete |
10 | | - edge_equality: Incomplete |
11 | 23 |
|
12 | 24 | def __init__(self, graph, subgraph, node_match=None, edge_match=None, cache=None) -> None: ... |
| 25 | + def create_aligned_partitions(self, thing_matcher, sg_things, g_things): ... |
13 | 26 | def find_isomorphisms(self, symmetry: bool = True) -> Generator[Incomplete, Incomplete, Incomplete]: ... |
14 | 27 | def largest_common_subgraph(self, symmetry: bool = True) -> Generator[Incomplete, Incomplete, None]: ... |
15 | | - def analyze_symmetry(self, graph, node_partitions, edge_colors): ... |
| 28 | + def analyze_subgraph_symmetry(self) -> dict[Hashable, set[Hashable]]: ... |
16 | 29 | def is_isomorphic(self, symmetry: bool = False) -> bool: ... |
17 | 30 | def subgraph_is_isomorphic(self, symmetry: bool = False) -> bool: ... |
18 | 31 | def isomorphisms_iter(self, symmetry: bool = True) -> Generator[Incomplete, Incomplete, None]: ... |
|
0 commit comments