I have a file data.txt with the following info:
edges
1 3
2 3
3 5
4 5
5 6
node_data
1 3 4 0 0
2 4 1 0 0
3 1 6 0 0
4 2 5 0 0
5 3 5 0 0
6 1 2 0 40
I want to read the first part "edges" and crate a networkX graph and then from "node_data" to input the rest of the data in the node.
I do not need to iterate the first part only to create the graph. In the second part, I can iterate to input the data to the corresponding node
I am able to do it in separate files but I have many of them.
Any suggestion will be greatly appreciated