epfl-lts2 / pygsp

Graph Signal Processing in Python
https://pygsp.rtfd.io
BSD 3-Clause "New" or "Revised" License
483 stars 93 forks source link

LineGraph not working #67

Closed HDubois-fr closed 4 years ago

HDubois-fr commented 4 years ago

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 commented 4 years ago

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.