Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Latest commit

 

History

History
16 lines (12 loc) · 373 Bytes

README.MD

File metadata and controls

16 lines (12 loc) · 373 Bytes

GraphFS

Graph Algorithm library for F#

Example Usage

let g = 
    Graph.empty
    |> Graph.addEdge (0, 1)
    |> Graph.addEdges [(1, 2); (2, 3); (3, 4)]
    |> Graph.removeEdge (1, 2)

printfn "Nodes: %A" (Graph.verts g |> Seq.toList) // Nodes: [0; 1; 2; 3; 4]
printfn "Neighbours of 2: %A" (Graph.neighbours 2 g |> Seq.toList) // Neighbours of 2: [3]