18 virtual ~vertex() {cout<<
" Vertex Detructor ..."<<endl;}
27 parton (
double mpt,
double meta,
double mphi,
double me,
bool mfinal) {
pt=mpt;
eta=meta;
phi=mphi;
e=me;
final=mfinal;}
28 virtual ~parton() {cout<<
" Parton Destructor ..."<<endl;}
41 virtual ~shower2() {cout<<
"Shower2 Detrcutor ..."<<endl;}
54 cout<<
"Load edge ... "<<e<<endl;
60 if (((
string) (tmp->
key)).find(
"pT")<1)
72 cout<<
"Load node ... "<<n<<endl;
116 if (((
string) (tmp->
key)).find(
"MyID")<1)
167 vector<weak_ptr<parton>> myv; list<edge> le=
all_edges();
172 for (list<edge>::iterator
it=le.begin();
it!=le.end(); ++
it)
174 if (
PP[*
it]->isFinal())
175 myv.push_back(
PP[*
it]);
188 int main (
int argc,
char* argv[])
190 cout <<
"Loading graph and preserving ids" << endl;
191 auto mS=make_shared<shower2>();
195 if (mS->load(
"test.gml",
true).err_num !=
GML_OK) {
196 cout <<
"Loading failed" << endl;
210 for (itt2 = search.
begin(), endt2=search.
end(); itt2 !=endt2; ++itt2)
212 cout<<*itt2<<
" "<<mS->GetNodeValue(*itt2)<<endl;
217 cout<<
"Finished ..."<<endl;