99 Elm Problems/Problem 94

From Wikibooks, open books for an open world
Jump to navigation Jump to search

94.a) Generate K-regular simple graphs with N nodes

94. b) In a K-regular graph all nodes have a degree of K; i.e. the number of edges incident in each node is K. How many (non-isomorphic!) 3-regular graphs with 6 nodes are there?

# # # THIS IS A STUB # # #

Example in Elm:
import Html exposing (text)
import List

f : Int -> Int
-- your implementation goes here

main = text (toString (f 0))