I started using python package 'networkx' today and I'm struggling to understand how you read input data from external files.
The examples shown in the documentation deal with small networks which can be read directly from the shell.
I have a legacy file which specifies a large electric network with this format:
'from_node' 'to_node' 'edge_name' 'edge_capacity' 'flow_cost' The next set of cards reads:
'node type' (source or sink), 'capacity', 'cost' I want to solve the max flow problem. How can I read such input data file?