void GraphHelper_GraphPostLoadComplete()
        {
            _menu = new GenericMenu();

            GraphHelper.NodeRegister.ForEach(entry =>
            {
                // Format into a folder using slashes, if one is defined.
                var formattedName = entry.Folder != string.Empty ? string.Format("{0}/{1}", entry.Folder, entry.Name) : entry.Name;

                _menu.AddItem(new GUIContent(formattedName), false, () => AddNode.InvokeSafe(new AddNodeEvent(entry)));
            });

            _menu.AddSeparator("");

            _menu.AddItem(new GUIContent("Remove All Nodes"), false, () => ClearNodes.InvokeSafe());
        }
 void ContextMenu_AddNode(AddNodeEvent addNodeEvent)
 {
     AddNode.InvokeSafe(addNodeEvent);
 }