<｜begin▁of▁sentence｜>### Instruction:
Given two graphs, G1 with a single node 1 with the attribute color set to 'blue', and G2 with two nodes where node 1 has the attribute color set to 'blue' and an additional node 2 with the attribute color set to 'green', can you determine if the nodes in G1 and G2 are equal using the 'nodes_equal' function in NetworkX? The problem to solve is determining the equality of the nodes including their data.
### Response:
import networkx as nx

# Create two graphs
G1 = nx.Graph()
G2 = nx.Graph()

# Add the same nodes and data to both graphs
G1.add_node(1, {'color': 'blue'})
G2.add_node(1, {'color': 'blue'})

# Add different nodes to G2
G2.add_node(2, {'color': 'green'})

# Check if nodes are equal
are_equal = nx.nodes_equal(G1.nodes(data=True), G2.nodes(data=True))
print('Are the nodes from G1 and G2 equal?', are_equal)
<|EOT|>
