private static BTEditorGraphNode CreateExistingNode(BTEditorGraphNode parent, BehaviourNode node)
        {
            BTEditorGraphNode graphNode = BTEditorGraphNode.CreateEmptyNode();

            graphNode.m_parent = parent;
            graphNode.m_graph  = parent.Graph;
            graphNode.SetExistingNode(node);

            return(graphNode);
        }
        public static BTEditorGraphNode CreateRoot(BTEditorGraph graph, Root node)
        {
            if (graph != null && node != null)
            {
                BTEditorGraphNode graphNode = BTEditorGraphNode.CreateEmptyNode();
                graphNode.m_graph  = graph;
                graphNode.m_parent = null;
                graphNode.SetExistingNode(node);

                return(graphNode);
            }

            return(null);
        }