16 #include <basic/Tracer.hh>
21 #include <utility/exit.hh>
22 #include <utility/io/izstream.hh>
23 #include <utility/file/FileName.hh>
24 #include <utility/pointer/owning_ptr.hh>
32 #include <utility/vector1.hh>
37 static basic::Tracer
tr(
"core.sequence.SequenceCoupling" );
53 if(!(vertices[1]==pos || vertices[2]==pos)){
115 utility::io::izstream input( fn );
120 "ERROR: Unable to open file " +
121 static_cast< std::string > (fn) +
124 utility_exit_with_message( msg );
128 tr.Debug <<
"reading from " << fn << std::endl;
141 getline( input, line );
143 getline( input, line );
144 std::istringstream line_stream( line );
146 if ( line_stream.fail() ) {
147 utility_exit_with_message(
"ERROR: failed while reading numVerts!" );
150 if ( line_stream.fail() ) {
151 utility_exit_with_message(
"ERROR: failed while reading numEdges!" );
156 while(lineCount<numVerts_ && getline(input,line)){
158 vertPot.resize( order.size() );
159 std::istringstream ls( line );
165 vertPot[order[count]]=aa_pot;
172 if(minPotAA>order.size()){
173 std::cout <<
" minpotAA" << minPotAA <<
"count " << count << std::endl;
174 utility_exit_with_message(
"minPotAA was of wrong size. quitting");
177 vertexPots.push_back(vertPot);
183 while(edgeCount<numEdges_ && getline(input,line)){
185 edgePot.resize(order.size());
187 std::istringstream ls( line );
193 edge.push_back(verti);
194 edge.push_back(vertj);
200 edgePotLine.resize( order.size() );
205 edgePotLine[order[j]] = edgeWt;
208 edgePot[order[i]] = edgePotLine;
218 if(vertices[1]==vert1 && vertices[2] ==vert2){
230 runtime_assert(edgeId>0);