create_pattern

Applicable Products

All processors

Function Usage

Wraps the input pattern graph into a native pattern object to match subgraphs in the target graph.

Prototype

1
create_pattern(graph: Graph) -> Pattern

Parameters

Parameter

Input/Output

Description

graph

Input

Pattern graph, which is of the ge.graph.Graph type.

Returns

Type

Description

Pattern

The constructed native pattern object

Restrictions

None