public sealed class Cycles
Maintain a cached collection of cycles found in a graph.

Constructors

Cycles

#
public Cycles(Graph graph)
graph (Graph)

Properties

Graph

#
public Graph Graph { get; }
Gets the graph this cycles cache is associated with.

Methods

FindCycleRoute

#
public Route FindCycleRoute(int edge)
Find the cyclical route a given edge is a part of.
edge (int)Edge index.
Route. Does not necessarily start at the given edge.

IsCircuitEdge

#
public bool IsCircuitEdge(int edge)
Gets whether the given edge is part of a circuit.
edge (int)

IsLoopEdge

#
public bool IsLoopEdge(int edge)
obsoleteUse IsCircuitEdge instead.
Gets whether the given edge is part of a circuit.
edge (int)

IsSpurEdge

#
public bool IsSpurEdge(int edge)
Gets whether the given edge is a spur edge, i.e. not part of any circuit.
edge (int)

IsTreeEdge

#
public bool IsTreeEdge(int edge)
obsoleteUse IsSpurEdge instead.
Gets whether the given edge is a spur edge.
edge (int)