# Edge class

Namespace: [Grasshopper2.Types.Constraints](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.constraints.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class Edge
```

An edge in a constraint system.

## Fields

- [Construction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/construction.md)
- [Id](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/id.md)
- [NodeA](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/nodea.md)
- [NodeB](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/nodeb.md)
- [Scalar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/scalar.md)
- [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/type.md)

## Properties

- [IsUnset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/isunset.md): Gets whether this edge is unset. Unset edges have empty Ids.
- [IsValid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/isvalid.md): Gets whether this edge is valid. Valid edges have non-empty and different node ids.
- [Unset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/unset.md): (static) Gets an unset edge.

## Methods

- [CreateArc](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/createarc.md): (static) Create a circle edge with a new id.
- [CreateCircle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/createcircle.md): (static) Create a circle edge with a new id.
- [CreateLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/createline.md): (static) Create a line edge with a new id.
- [WithConstruction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/withconstruction.md): Set the 'Construction' flag of this edge to true.
- [WithoutConstruction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.edge/withoutconstruction.md): Set the 'Construction' flag of this edge to false.
