ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2021 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Solutions.P80

Description

Some solutions to Problems.P80 of Ninety-Nine Haskell Problems.

Synopsis

Documentation

class Graph g => ConvertibleGraph g Source #

Functions to convert between the different graph representations Lists, Adjacency, Paths, and G.

toLists :: ConvertibleGraph g => g -> Lists Source #

Convert graph to the Lists representation.

toAdjacency :: ConvertibleGraph g => g -> Adjacency Source #

Convert graph to the Adjacency representation.

toPaths :: ConvertibleGraph g => g -> Paths Source #

Convert graph to the Paths representation.

toG :: ConvertibleGraph g => g -> G Source #

Convert graph to the G representation.