I think that the best option you have to achieve what you want, is to look directly to the source code of the GraphEditorDemo class in order to understand how is it using the library.
Tips: sources are available there, and seem to be nicely commented.