
# IPCB_ConnectivityGraph interface

*No description yet.*

```csharp
public interface IPCB_ConnectivityGraph
```

**Namespace:** PCB · **Assembly:** Altium.SDK.Interfaces

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [MaxPinsCount](#maxpinscount) | `int` | get; set |  |
| [MaxPrimsInNet](#maxprimsinnet) | `int` | get; set |  |

### MaxPinsCount

*No description yet.*

```csharp
int GetMaxPinsCount();
void SetMaxPinsCount(int argValue);
```

**Type:** `int` · **Access:** read/write

### MaxPrimsInNet

*No description yet.*

```csharp
int GetMaxPrimsInNet();
void SetMaxPrimsInNet(int argValue);
```

**Type:** `int` · **Access:** read/write

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [FindShortestPath](#findshortestpath) | [IPCB_PrimitiveList](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PrimitiveList.md) |  |
| [FindShortestPath2](#findshortestpath2) | [IPCB_PrimitiveList](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PrimitiveList.md) |  |
| [GetConnectedPrimitives](#getconnectedprimitives) | [IPCB_PrimitiveGroups](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PrimitiveGroups.md) |  |
| [Rebuild](#rebuild) | `void` |  |
| [RebuildNet](#rebuildnet) | `void` |  |

### FindShortestPath

*No description yet.*

```csharp
IPCB_PrimitiveList FindShortestPath(IPCB_Primitive argFromPrimitive, IPCB_Primitive argToPrimitive);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFromPrimitive` | [IPCB_Primitive](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_Primitive.md) | value |
| `argToPrimitive` | [IPCB_Primitive](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_Primitive.md) | value |

**Returns:** [IPCB_PrimitiveList](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PrimitiveList.md)

Extension method of `IPCB_ConnectivityGraphHelper` (`using PCB;`).

### FindShortestPath2

*No description yet.*

```csharp
IPCB_PrimitiveList FindShortestPath2(IPCB_PrimitiveList argForPrimitives);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argForPrimitives` | [IPCB_PrimitiveList](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PrimitiveList.md) | value |

**Returns:** [IPCB_PrimitiveList](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PrimitiveList.md)

Extension method of `IPCB_ConnectivityGraphHelper` (`using PCB;`).

### GetConnectedPrimitives

*No description yet.*

```csharp
IPCB_PrimitiveGroups GetConnectedPrimitives();
```

**Returns:** [IPCB_PrimitiveGroups](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PrimitiveGroups.md)

Extension method of `IPCB_ConnectivityGraphHelper` (`using PCB;`).

### Rebuild

*No description yet.*

```csharp
void Rebuild();
```

**Returns:** nothing (`void`)

### RebuildNet

*No description yet.*

```csharp
void RebuildNet(IPCB_Net argNet);
void RebuildNet(object argNet);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argNet` | [IPCB_Net](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_Net.md) | value |

**Returns:** nothing (`void`)

The first overload is an extension method of `IPCB_ConnectivityGraphHelper` (`using PCB;`) with typed parameters; the second is declared by the interface.

## Returned by

[IPCB_BoardEx3.CreateNewConnectivityGraph](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_BoardEx3.md#createnewconnectivitygraph), [IPCB_BoardEx3.GetCurrentConnectivityGraph](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_BoardEx3.md#getcurrentconnectivitygraph)
