use networkx's nodes