from pyvis.network import Network
from itertools import combinations
nodes = [n for n in range(10)]
edges = list(combinations(nodes, 2))
nt = Network()
nt.add_nodes(nodes)
nt.add_edges(edges)
# correctly writes file, but opens browser to relative path ./complete_graph.html, which is invalid
nt.write_html("complete_graph.html")
additionally,
write_html
does not handle fully qualified paths at all