Builds edge list from text.
Setup nodes data structure with initial values