
In graph theory, a Cactus is a simply connected graph such that any two simple cycles in the graph share at most one vertex.
Task
Take a simple graph as input and decide whether it is a Cactus graph. You should output two distinct values one for True and one for False.
This is code-golf so yo...