Graph Constructor
Function Usage
Creates a graph object.
Prototype
1 | Graph(name: Optional[str] = "graph") |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
name |
Input |
Indicates the graph name. The value is of the string type. The default value is graph. |
Returns
Created graph object.
Constraints
- If the name is not of the string type, TypeError is thrown.
- If the graph fails to be created, RuntimeError is thrown.
Examples
1 | graph = Graph("my_graph") |
Parent topic: Graph