Reference documentation and code samples for the Google Cloud App Topology V1 Client class Graph.
Represents a graph structure composed of nodes and edges.
Generated from protobuf message google.cloud.apptopology.v1.Graph
Namespace
Google \ Cloud \ AppTopology \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ nodes |
array<Node>
A collection of unique nodes that make up the graph. |
↳ edges |
array<Edge>
Collection of unique edges connecting the |
getNodes
A collection of unique nodes that make up the graph.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Node> |
|
setNodes
A collection of unique nodes that make up the graph.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Node>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEdges
Collection of unique edges connecting the nodes in the graph. Both source
and destination nodes for each edges will be present in the nodes list.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Edge> |
|
setEdges
Collection of unique edges connecting the nodes in the graph. Both source
and destination nodes for each edges will be present in the nodes list.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Edge>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|