Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions rustworkx/rustworkx.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ class ColoringStrategy:
Saturation: Any
IndependentSet: Any

@final
class Domain:
Node: Domain
Edge: Domain
Graph: Domain
All: Domain

@final
class Type:
Boolean: Type
Int: Type
Float: Type
Long: Type

# Cartesian product

def digraph_cartesian_product(
Expand Down Expand Up @@ -680,11 +694,23 @@ def directed_random_bipartite_graph(

# Read Write

def read_graphml_with_keys(
path: str,
/,
compression: str | None = ...,
) -> tuple[list[tuple[str, Domain, str, Type, Any]], list[PyGraph | PyDiGraph]]: ...
def read_graphml(
path: str,
/,
compression: str | None = ...,
) -> list[PyGraph | PyDiGraph]: ...
def write_graphml(
graphs: list[PyGraph | PyDiGraph],
keys: list[tuple[str, Domain, str, Type, Any]],
path: str,
/,
compression: str | None = ...,
) -> None: ...
def digraph_node_link_json(
graph: PyDiGraph[_S, _T],
/,
Expand Down
Loading
Loading