get all node names in a graph code example Example: tensorflow all nodes [n.name for n in tf.get_default_graph().as_graph_def().node]