prepare_initial_nodes function

Prepare initial node table for igraph conversion