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

LineGraph not working #67

Closed
HDubois-fr opened this issue Jan 6, 2020 · 1 comment
Closed

LineGraph not working #67

HDubois-fr opened this issue Jan 6, 2020 · 1 comment

Comments

@HDubois-fr
Copy link

Hi,
I'm using pygsp v0.5.1 installed through conda, and when running the LineGraph example

graph = graphs.Sensor(5)
line_graph = graphs.LineGraph(graph)

I get the following error:

AttributeError: module 'pygsp.graphs' has no attribute 'LineGraph'

Also, if i add the k=2 parameter to the graph = graphs.Sensor(5), i get the following:

TypeError: __init__() got an unexpected keyword argument 'k'
@mdeff
Copy link
Collaborator

mdeff commented Jan 17, 2020

That's because you are using the stable version of the PyGSP (installed by conda and pip) while you are looking at the development version of the documentation (corresponding to the github master branch). You can either install the development version with pip install git+https://github.com/epfl-lts2/pygsp or look at the stable documentation at https://pygsp.readthedocs.io.

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

No branches or pull requests

2 participants