Graph_Sampling icon indicating copy to clipboard operation
Graph_Sampling copied to clipboard

The value of the returned edge is not the real value

Open DeathSentence opened this issue 4 years ago • 2 comments

complete_graph.nodes[n]['id'] = n ? why?

sampled_graph.add_node(chosen_node) sampled_graph.add_edge(curr_node, chosen_node)

The 'chosen_node' and 'curr_node' are both 'id' and not real values.

Cause the RW to walk according to the id of the node, not the true value of the node.

DeathSentence avatar Jan 29 '21 08:01 DeathSentence

@kirtiJain25

Ashish7129 avatar Apr 06 '21 13:04 Ashish7129

@DeathSentence You can change the code according to your understanding

Ashish7129 avatar Apr 06 '21 14:04 Ashish7129