Currently trying to figure out how to read data from a file, line by line (getline) which be placed in a new Node which is initlized according to the Node constructor (see below). This should then be added to a map called map<string, Node> nodes where the string is the Node label.
while( std::getline( fin, line ) ) {
std::istringstream stm(line) ; // #include <sstream>
int x, y ;
std::string label ;
if( stm >> x >> y >> label ) nodes.emplace( label, Node{ x, y, label } ) ;
// uncomment if you want to stop processing further lines after a badly formed line is encountered
// else fin.clear( std::ios::failbit ) ;
}