<｜begin▁of▁sentence｜>### Instruction:
Imagine you've stumbled upon an old family scroll, a detailed parchment containing a complex web of ancestry and relations in Pajek format. As a genealogist eager to untangle this intricate tapestry of lineage, how would you go about transferring this rich historical network into something more manipulable, like a NetworkX MultiGraph or MultiDiGraph, for thorough analysis? Should the need arise to simplify this complex relationship network into a single thread of connections for each individual, how can you convert your detailed multilayered family map into a straightforward NetworkX Graph? Remember, the essence and the connections of your genealogical findings must remain intact through this digital transmutation.
### Response:
import networkx as nx
# Assume 'path' points to a file named 'example.net' containing a Pajek representation of a graph
path = 'example.net'
# Read the Pajek-formatted graph as a NetworkX MultiGraph
G = nx.read_pajek(path)
# If you want to convert the MultiGraph to a simple Graph (disregarding parallel edges and edge data)
G_simple = nx.Graph(G)
# Now you can work with G or G_simple as you would with any other NetworkX graph
<|EOT|>
