|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|2 초||512 MB||0||0||0||0.000%|
It is well known that an undirected graph is eulerian if and only if each vertex has an even degree.
Yuuka has an undirected graph with $n$ vertices and $m$ edges. The vertices are conveniently labeled with $1, 2, \dots, n$. All edges are initially blue. Yuuka plans to paint some of the edges red, and leave other edges blue. If the subgraph formed by the red edges is eulerian, she will add $x^2$ to the counter, where $x$ is the number of red edges.
Let the counter account for all $2^m$ ways to paint the edges. Yuuka would like to know the total value of the counter modulo $(10^9+7)$.
The input contains zero or more test cases, and is terminated by end-of-file. For each test case:
The first line contains two integers $n$ and $m$ ($1 \leq n \leq 2 \cdot 10^5$, $0 \leq m \leq 2 \cdot 10^5$).
The $i$-th of the following $m$ lines contains two integers $a_i$ and $b_i$ which denote an edge between vertices $a_i$ and $b_i$ ($1 \leq a_i, b_i \leq n$).
It is guaranteed that neither the sum of all $n$ nor the sum of all $m$ exceeds $2 \cdot 10^5$.
For each test case, output an integer which denotes the result.
4 4 1 2 1 3 1 4 2 3 6 6 1 2 2 3 3 1 4 5 5 6 6 4 2 3 1 1 1 2 1 2
9 54 14