TMultiGraph

Hi
I create a bunch of TGrpah objects and I added to my “standard” TMultiGraph object mg; How could I calculate the number of graphs in my object?

should a get a pointer to the TList class storing the graphs
TList* GetListOfGraphs() const
and then using the member funtions of TList, I must traverse the list and count the number of elements in that list from top to bottom?? Any other way of doing this?

Cristian

mg->GetListOfGraphs()->GetSize()Jan

Hehe I swear I went through the list of member function of the TList class and I found odd that I did not find a method to retrieve the size of the list. My bad! I have to stop my habits of drinking and programming…

Thxs for the quick reply!