graphwave
graphwave copied to clipboard
Several bugs with 'Using GraphWave' iPython notebook
Thanks for putting together the tutorial in the iPython notebook! While trying to use it, I came across the following bugs and suggested fixes:
-
from graphwave.shapes import build_graph
should befrom GraphWave.shapes import build_graph
-
from graphwave.graphwave import *
should befrom GraphWave.graphwave import *
-
in
build_graph.py
,from utils.utils import *
should befrom ...utils.utils import *
- this is not best practice, but is a temporary bandaid for a breaking build path -
np.random.seed(123)
should be in the 2nd cell (not in the 1st) so that the 2nd cell can be rerun multiple times with the same result -
chi, heat_print, taus=graphwave(G, taus='automatic', verbose=False)
should bechi, heat_print, taus=graphwave_alg(G, time_pnts, taus='auto', verbose=False)
- this is really a couple of things: functiongraphwave
has been renamed tographwave_alg
(I think?),time_pnts
argument should be provided (looks like the function signature has changed), andautomatic
should beauto
Can the author verify that these changes are in fact correct and update the 'Using GraphWave' notebook with the results that are expected?
when running basis, role_id = eval(basis_type)(start, width_basis)
this error occurs:
name 'cycle' is not defined. Do you know how to fix it?