https://123dok.net/document/y8g79mlr-algorithms-for-biological-graphs-analysis-and-enumeration.html