MCPcopy Create free account
hub / github.com/Singular/Singular / readMatrixIncidenceProperty

Method readMatrixIncidenceProperty

gfanlib/gfanlib_polymakefile.cpp:359–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357
358
359vector<list<int> > PolymakeFile::readMatrixIncidenceProperty(const char *p)
360{
361 vector<list<int> > ret;
362 assert(hasProperty(p,true));
363 list<PolymakeProperty>::iterator prop=findProperty(p);
364 stringstream s(prop->value);
365
366 while((s.peek()!=-1)&&(s.peek()!='\n')&&(s.peek()!=0))
367 {
368 // fprintf(Stderr,"!\n");
369 int c=s.get();
370 //fprintf(Stderr,"%i",c);
371 assert(c=='{');
372 ret.push_back(readIntList(s));
373 c=s.get();
374 assert(c=='}');
375 c=s.get();
376 while(c==' ' || c=='\t')c=s.get();
377 eatComment2(c,s);
378 assert(c=='\n');
379 }
380 return ret;
381}
382
383
384void PolymakeFile::writeIncidenceMatrixProperty(const char *p, const vector<list<int> > &m)

Callers 2

readFanMethod · 0.80
ZFanMethod · 0.80

Calls 5

assertFunction · 0.85
readIntListFunction · 0.85
eatComment2Function · 0.85
getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected