# Cycles 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 Cycles
```

Maintain a cached collection of cycles found in a graph.

## Constructors

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

## Properties

- [Graph](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.cycles/graph.md): Gets the graph this cycles cache is associated with.

## Methods

- [FindCycleRoute](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.cycles/findcycleroute.md): Find the cyclical route a given edge is a part of.
- [IsCircuitEdge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.cycles/iscircuitedge.md): Gets whether the given edge is part of a circuit.
- [IsLoopEdge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.cycles/isloopedge.md): (obsolete) Gets whether the given edge is part of a circuit.
- [IsSpurEdge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.cycles/isspuredge.md): Gets whether the given edge is a spur edge, i.e. not part of any circuit.
- [IsTreeEdge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.graphs.cycles/istreeedge.md): (obsolete) Gets whether the given edge is a spur edge.
