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

Solutions.P83

Description

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

Synopsis

Documentation

spanningTrees :: G -> [G] Source #

Construct all spanning trees of a given graph.

isTree :: G -> Bool Source #

Write a function which returns whether a graph is a tree using spanningTrees.

isConnected :: G -> Bool Source #

Write a function which returns whether a graph is connected using spanningTrees.