#d1604. 环的数量
环的数量
Number of Cycles
Problem Description
Given a simple graph with vertices and edges, count the number of simple cycles.
Input Format
The first line contains two integers and . Lines through each contain two integers , indicating an edge between vertices and .
Output Format
Output one line containing the number of cycles in the graph.
Sample Input
4 6
1 2
1 3
1 4
2 3
2 4
3 4
Sample Output
7
Constraints
For of the data, it is guaranteed that .