Yog.FSharp
Getting Started Examples API Reference GitHub

Cycle Graphs (\(C_n\))

A cycle graph consists of a single cycle, or in other words, some number of vertices connected in a closed chain.

#I "../../src/Yog.FSharp/bin/Debug/net10.0"
#r "Yog.FSharp.dll"

open Yog.Model
open Yog.Generators

let c6 = Classic.cycle 6 Undirected

Visual Representation

graph TD 0 --- 1 1 --- 2 2 --- 3 3 --- 4 4 --- 5 5 --- 0
val c6: obj