Commit Graph

3 Commits

Author SHA1 Message Date
Matthew Connelly
a683c830ae graph/graphs/gen: add breadth-first n-ary tree constructor 2021-06-01 15:34:36 -04:00
Dan Kortschak
326e41ebb8 graph/graphs/gen: check for all node id collisions
This incurs a greater cost for well-behaved code, but prevents subtle
errors that would otherwise not be caught, for example cycle(1,2,3,4,5,3)
not being a single cycle.
2021-05-06 17:44:51 +09:30
Dan Kortschak
76f2be9ab5 graph/graphs/gen: add simple graph construction functions 2021-03-25 20:53:23 +10:30