Get node labels from graph. Must be stored as node attributes as graph.nodes[index][‘name’]. Includes None for nodes with no name
graph (networkx.graph) – Networkx graph object with node[‘name’] attributes