# Route 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
public sealed class Route
```

Represents a path in a graph, travelling from one node to another, through a sequence of edges.

## Constructors

- [Route](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/ctor.md)

## Properties

- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/count.md): Gets the number of edges this path consists of.
- [Node0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/node0.md): Gets the node at the start of the path.
- [Node1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/node1.md): Gets the node at the end of the path.

## Methods

- [EdgeAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/edgeat.md): (2 overloads) Gets the edge at the given path index.
- [FindAnyCycleContainingEdge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/findanycyclecontainingedge.md): (static) Find a cycle containing the indicated edge.
- [FindEdge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/findedge.md): Find the index of the first occurrence of the given edge within this path.
- [WalkEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/walkedges.md): Walk along all the edges this path implies.
- [WalkNodes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/walknodes.md): Walk along all the nodes this path implies. This does not specifically include the [Route.Node0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/node0.md) and [Route.Node1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.route/node1.md) properties, it is assumed that the edges themselves encode this information correctly.
