In graph2vec using networkx, the label and feature should be numerical for the purpose of training. You did not use the right structure so it won't find the graphs
G.add_node(0, label = 1, feature=0.5)
G.add_node(1, label = 2, feature=1.2)
G.add_node(2, label = 3, feature=0.8)