parameters: (self, graph)
return_statement: return nodes_map
docstring: Builds a mapping of node names to their defs from the graph.
docstring_summary: Builds a mapping of node names to their defs from the graph.
docstring_tokens: Builds a mapping of node names to their defs from the graph .
function: def create_nodes_map(self, graph):
      """Builds a mapping of node names to their defs from the graph."""
      nodes_map = {}
      for node in graph.node:
        if node.name not in nodes_map.keys():
          nodes_map[node.name] = node
        else:
          raise ValueError("Duplicate node names detected.")
      return nodes_map
function_tokens: def create_nodes_map ( self , graph ) : nodes_map = { } for node in graph . node : if node . name not in nodes_map . keys ( ) : nodes_map [ node . name ] = node else : raise ValueError ( "Duplicate node names detected." ) return nodes_map