TGraph* graph = new TGraph(10); graph->SetTitle("My Graph Title");
TGraph* graph = new TGraph(10); graph->SetTitle("Graph Title;;X Axis Label;Y Axis Label");In this example, the SetTitle() function is used to set the title of the graph as well as the labels for the X and Y axes. The syntax for setting both the title and axis labels is "Title;;X Label;Y Label". Both examples use the TGraph class and the SetTitle() function, indicating that they are using the ROOT package library.