embed

embed(
poly: Poly,
client_graph: Graph,
embedding_method: Literal['Default', 'Minor', 'Clique', 'Parallel'] | EmbeddingMethod = EmbeddingMethod.Default,
embedding_timeout: timedelta = datetime.timedelta(seconds=10),
chain_strength: float = 1.0,
) tuple[amplify.Poly, list[numpy.ndarray[dtype=uint32]], list[tuple[int, int]]]

embed

Parameters:
  • poly (Poly)

  • client_graph (Graph)

  • embedding_method (Literal['Default', 'Minor', 'Clique', 'Parallel'] | amplify.EmbeddingMethod) – Defaults to EmbeddingMethod.Default.

  • embedding_timeout (timedelta) – Defaults to datetime.timedelta(seconds=10).

  • chain_strength (float) – Defaults to 1.0.

Return type:

tuple[Poly, list[ndarray[dtype=uint32]], list[tuple[int, int]]]