__init__

Applicable Products

All processors

Function Usage

Constructs a pattern object from a pattern graph. After the construction, the original graph handle becomes invalid.

Prototype

1
__init__(graph: Graph) -> None

Parameters

Parameter

Input/Output

Description

graph

Input

Pattern graph, which is of the ge.graph.Graph type. After the construction, the graph handle becomes invalid.

Returns

None

Restrictions

Do not use the graph variable after the construction.