<｜begin▁of▁sentence｜>### Instruction:
Given a graph with nodes 'A' (with a custom attribute 'value' set to 42) and 'B', and an edge between them with weight 3.14, how would you use NetworkX to generate lines of its GML representation without handling any special type conversion?
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()
# Add a node with a custom attribute
G.add_node('A', value=42)
# Add another node and an edge
G.add_edge('A', 'B', weight=3.14)

# Generate GML lines without any custom string conversion
for line in nx.generate_gml(G):
    print(line)
<|EOT|>
