convert_to_network# convert_to_network(neighbors: DataFrame) → Graph[source]# Convert lists of neighbors to a network object. Parameters: neighbors – Lists of neighbors for each node id. Returns: The network object.