graph-walker
graph-walker copied to clipboard
Clarification of walker.random_walks
Hi! I'm calling walker.random_walks(self.graph, n_walks=15, walk_len=10)
, but the output numpy array has shape (1500, 10)
. Why is the first dimension multiplied by 100?
n_walks represents the number of random walks per node. Si if your graph has 100 nodes, you'll have 10015 random walks. The kth random walk starting at node i will be accessible at the 100k+i index.
Hi! Just had this exact same question, thanks for the clarification :slightly_smiling_face: And for this very useful project!