# sm.pipeGraph.getInputContainers

Returns a table of all connected input containers sorted by closest first. If the asking shape doesn't have input and output directions it returns all connected containers.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.pipeGraph.getInputContainers( requester )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.pipeGraph.md#getinputcontainers)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `requester` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape connected to the pipe graph who's connected chests you want. |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `containers` | table | A table of connected container shapes sorted by closest first. |
