You're given a simple connected undirected graph with $$$n$$$ vertices and $$$m$$$ edges.
For each vertex, we assign it a random point $$$(x_i,y_i,z_i)$$$, where $$$x_i,y_i,z_i$$$ are independent uniform random real numbers in $$$[0,1]$$$.
For each edge, its coordinate is defined as the middle point of its two ends' coordinates. The middle point of $$$(a, b, c)$$$ and $$$(x, y, z)$$$ is $$$(\frac{a + x}{2}, \frac{b + y}{2}, \frac{c + z}{2})$$$.
Among these $$$n + m$$$ points, you are to find the expected number of ways to choose $$$4$$$ coplanar distinct points. Print the answer modulo $$$10^9+7$$$.
The first line contains a positive integer $$$T$$$ ($$$1\le T\le 10^4$$$), denoting the number of test cases.
For each testcase:
It is guaranteed that $$$\sum n\le 2\cdot 10^5$$$, $$$\sum m\le 5\cdot 10^5$$$.
An empty line is placed before each testcase for better readability.
For each testcase, output one line containing a single integer denoting the answer module $$$10^9+7$$$.
37 182 12 33 42 56 47 56 53 11 51 77 32 62 74 55 34 26 76 35 71 22 34 25 11 43 53 11 0
593 88 0