Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

None of the examples work #2

Open
EdenRochman opened this issue Feb 21, 2021 · 13 comments
Open

None of the examples work #2

EdenRochman opened this issue Feb 21, 2021 · 13 comments

Comments

@EdenRochman
Copy link

I tried all the example with this matrix

adj_matrix = np.array([[0, 1, 1, 0, 0, 0],
[1, 0, 1, 0, 0, 0],
[1, 1, 0, 1, 0, 0],
[0, 0, 1, 0, 1, 1],
[0, 0, 0, 1, 0, 1],
[0, 0, 0, 1, 1, 0]])

And none of them work.

For instance, the first visualization traceback to
TypeError: m > k must hold

The first animation traceback to
ZeroDivisionError: division by zero

@adamFinastra
Copy link

Seeing the same issue

@lidunwei
Copy link

me too

@dinghongbi
Copy link

Is there anything method ?

@VinceLyn
Copy link

me too - -!

@maverick0220
Copy link

same exact problem, and I tried to debug with a randomly created ndarray, when the new ndarray has [{0, 3}, {1, 7}, {9, 2, 4, 5}, {8, 6}] as communities , the error become:

scipy.spatial.qhull.QhullError: QH6214 qhull input error: not enough points(2) to construct initial simplex (need 3)

While executing: | qhull i Qt
Options selected for Qhull 2019.1.r 2019/06/21:
run-id 1432627090 incidence Qtriangulate _pre-merge _zero-centrum
_maxoutside 0

So is this thing really works?

@HCoT-Hub
Copy link

The first one: Actually, I found many ways, and I find it seems that 151 line, in communities\visualization\draw_communities.py def _community_patch(vertices): tck, u = splprep(vertices.T, u=None, s=0.0, per=1) lost the key of the k——the default k is 3. So I changed it: tck, u = splprep(vertices.T, u=None, s=0.0, per=1, k=2). And it works. But I don't know it is right or not.

@HCoT-Hub
Copy link

@maverick0220
Copy link

it pops out a new error:

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

and my Python program "accidentally" dead(according to my system info, I'm using macOS Big Sur)
( ´Д`)y━・~~

@Mintcat10
Copy link

Mintcat10 commented Apr 29, 2021

The first one: Actually, I found many ways, and I find it seems that 151 line, in communities\visualization\draw_communities.py def _community_patch(vertices): tck, u = splprep(vertices.T, u=None, s=0.0, per=1) lost the key of the k——the default k is 3. So I changed it: tck, u = splprep(vertices.T, u=None, s=0.0, per=1, k=2). And it works. But I don't know it is right or not.

I think you are right.
By the way, you can use bigger matrix,let the number of the least cluster more than 3, it will work.
Because in math, cubic spline interpolate need more than three points.
Or you can uses k=2,it is right too.

@xuzhongriyue1234ming
Copy link

me too

@sanbeichahegongheguo
Copy link

me too - -!

me too !!!

@zPz-002
Copy link

zPz-002 commented Apr 20, 2022

The first one: Actually, I found many ways, and I find it seems that 151 line, in communities\visualization\draw_communities.py def _community_patch(vertices): tck, u = splprep(vertices.T, u=None, s=0.0, per=1) lost the key of the k——the default k is 3. So I changed it: tck, u = splprep(vertices.T, u=None, s=0.0, per=1, k=2). And it works. But I don't know it is right or not.

it pops out a new error:
scipy.spatial.qhull.QhullError: QH6214 qhull input error: not enough points(1) to construct initial simplex (need 3)

While executing: | qhull i Qt
Options selected for Qhull 2019.1.r 2019/06/21:
run-id 1882796852 incidence Qtriangulate _pre-merge _zero-centrum
_maxoutside 0

@MakaBBaka
Copy link

The first one: Actually, I found many ways, and I find it seems that 151 line, in communities\visualization\draw_communities.py def _community_patch(vertices): tck, u = splprep(vertices.T, u=None, s=0.0, per=1) lost the key of the k——the default k is 3. So I changed it: tck, u = splprep(vertices.T, u=None, s=0.0, per=1, k=2). And it works. But I don't know it is right or not.

it pops out a new error: scipy.spatial.qhull.QhullError: QH6214 qhull input error: not enough points(1) to construct initial simplex (need 3)

While executing: | qhull i Qt Options selected for Qhull 2019.1.r 2019/06/21: run-id 1882796852 incidence Qtriangulate _pre-merge _zero-centrum _maxoutside 0

Did you solve it? I also ran into this problem with my own data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests