0.2.0 (latest) 0.1.1 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 \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ nodes` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.Node>` A collection of unique nodes that make up the graph. |
| `↳ edges` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.Edge>` 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. |

### getNodes

A collection of unique nodes that make up the graph.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.Node>` |   |

### setNodes

A collection of unique nodes that make up the graph.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.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<https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.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<https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.Edge>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |