<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edge set [(1, 2), (1, 3), (2, 4)], can you use a custom formatting function to rename each node with a prefix 'Node ' and display the formatted node names?
### Response:
import networkx as nx

# Create a NetworkX graph
g = nx.Graph()

# Add some edges to the graph
g.add_edges_from([(1, 2), (1, 3), (2, 4)])

# Define a custom function to format nodes
_format_mapping = lambda: {node: f'Node {node}' for node in g.nodes()}

# Use the custom formatting function to display node names
formatted_nodes = _format_mapping()
print('Formatted nodes:', formatted_nodes)
<|EOT|>
