<｜begin▁of▁sentence｜>### Instruction:
Given the number of nodes `n=30`, the radius `radius=0.25`, the threshold `theta=0.5`, and the dimensions `dim=2`, can you generate a thresholded random geometric graph using NetworkX's `thresholded_random_geometric_graph` function? Please also set a seed for reproducibility (e.g., `seed=42`), print out the list of nodes with their data, and print out the list of edges with their data.
### Response:
import networkx as nx

# Define the number of nodes, radius, and threshold
n = 30
radius = 0.25
theta = 0.5
dim = 2

# Seed for reproducibility
seed = 42

# Generate the graph
G = nx.thresholded_random_geometric_graph(n, radius, theta, dim, seed=seed)

# Print the nodes and edges
def print_graph_info(graph):
    print("Nodes:", list(graph.nodes(data=True)))
    print("Edges:", list(graph.edges(data=True)))

print_graph_info(G)
<|EOT|>
