# Edges class

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

```cs
[IoId("00000000-51ec-4119-95bc-40ccf7b0142a")]
public sealed class Edges : IStorable, IEquatable<Edges>
```

Maintains an immutable list of [Edge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edge.md) instances and associated attributes.

## Constructors

- [Edges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/ctor.md): (2 overloads)

## Properties

- [Backwards](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/backwards.md): Enumerate over all nodes in a backwards fashion.
- [BackwardsWithAttributes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/backwardswithattributes.md): Enumerate over all nodes in a backwards fashion.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/count.md): Gets the number of edges in this collection.
- [Forwards](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/forwards.md): Enumerate over all nodes in a forwards fashion.
- [ForwardsWithAttributes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/forwardswithattributes.md): Enumerate over all nodes in a forwards fashion.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/item.md): (2 overloads) Gets the edge and its attributes at the given index.

## Methods

- [Attributes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/attributes.md): Gets the attributes associated with the given index. Note; the index here does NOT represent the edge, but the attributes.
- [BothWaysCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/bothwayscount.md): Gets the number of two-way edges that start or end end at the given node index.
- [BothWaysEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/bothwaysedges.md): Iterate over the indices of all two-way edges that start or end at the given node index.
- [Clean](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/clean.md): Cleanup this list of edges. This involves removing unused attributes and merging identical attributes.
- [EdgeLines](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/edgelines.md): Iterate over all lines implied by the edges.
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/equals.md): (2 overloads)
- [FlipAll](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/flipall.md): Flip the [Edge.A](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edge/a.md) and [Edge.B](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edge/b.md) fields of all edges.
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/gethashcode.md)
- [IncomingCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/incomingcount.md): Gets the number of one-way edges that end at the given node index.
- [IncomingEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/incomingedges.md): Iterate over the indices of all one-way edges that end at the given node index.
- [LocalReach](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/localreach.md): Enumerate over all node indices which can be reached with N steps from a given node.
- [MakeAllOneWay](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/makealloneway.md): Make all edges one-way.
- [MakeAllTwoWay](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/makealltwoway.md): Make all edges two-way.
- [Merge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/merge.md): (static) Merge two edge arrays.
- [OutgoingCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/outgoingcount.md): Gets the number of one-way edges that start at the given node index.
- [OutgoingEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/outgoingedges.md): Iterate over the indices of all one-way edges that start at the given node index.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/store.md)
- [ToAttributeArray](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/toattributearray.md): Create a duplicate of the attribute array.
- [TotalCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/totalcount.md): Gets the total number of edges that start or end end at the given node index.
- [TotalEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/totaledges.md): Iterate over all edge indices which connect to the given node.
- [WithoutAttributes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.edges/withoutattributes.md): Remove all attributes from this node list.
