<｜begin▁of▁sentence｜>### Instruction:
As a systems analyst, you have been tasked with analyzing and modifying a network system using the networkx library in Python. For the given list of nodes [1, 2, 3] and edges [(1, 2), (2, 3)], you are required to create a graph and then add an additional single node represented as an integer (e.g., 4) to the network. Your goal is to optimize the system's performance and usability for the end users.
### Response:
import networkx as nx

# Create a networkx graph
g_nx = nx.Graph()

# Add nodes and edges to the graph
nodes = [1, 2, 3]
edges = [(1, 2), (2, 3)]
g_nx.add_nodes_from(nodes)
g_nx.add_edges_from(edges)

# Let's add integer 4 to our networkx graph
# This would translate to adding a node in igraph's context
g_nx.add_node(4)

# Now, print the nodes of the networkx graph
print(g_nx.nodes())
<|EOT|>
