# GH_WireTopology class

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_WireTopology : GH_ISerializable
```

Represents the topological data for a single connector wire.

## Constructors

- [GH_WireTopology](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-wiretopology/ctor.md): (5 overloads) Blank constructor.

## Properties

- [SourceIndex](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-wiretopology/sourceindex.md): Gets the index of the source parameter in the Sources list of the target parameter.
- [SourceParameterID](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-wiretopology/sourceparameterid.md): Gets the instance ID of the source parameter.
- [TargetParameterID](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-wiretopology/targetparameterid.md): Gets the instance ID of the target parameter.
- [ValidIndex](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-wiretopology/validindex.md): Gets a value indicating whether or not the source index is a valid number.

## Methods

- [DestroyConnection](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-wiretopology/destroyconnection.md): Destroys the topological connector wire if it exists.
- [EnsureConnection](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-wiretopology/ensureconnection.md): Creates the topological connector wire if it doesn't already exist.
- [Read](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-wiretopology/read.md)
- [Write](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-wiretopology/write.md)
