-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Hi!
I am running PecanPy to generate graph walks manually for downstream use. It starts with (for example):
from pecanpy import pecanpy as node2vec_p
#generate .edg file from networkx graph
nx.write_edgelist(graph, 'graph_one.edg', delimiter=' ', data=False)
g = node2vec_p.SparseOTF(p=1, q=0.7, workers=1, verbose=True)
g.read_edg(os.path.join(file_path, 'graph_one.edg'), weighted=False, directed=False, delimiter=' ')
Then graph walk with:
walks = g.simulate_walks(num_walks=num_walks, walk_length=walk_len)
walks are then saved.
In some runs (for the same graph), the walks generate without issue. but in others, tis message appears: FATAL ERROR! Neighbor not found
.
It doesn't break the walk - it then continues and finishes. I have confirmed that there are absolutely no isolates in the original networkx graph. There are nodes with degree 1. Why in some run is there is no issue whatsoever, and in other it throws this error/warning. is it problematic for the walk? should i run and only use walks that have not thrown that error?
Thank you!
Metadata
Metadata
Assignees
Labels
No labels