public static IEnumerable <Type> GetExlusiveNodeTypesForGraph(BaseGraphType graphType)
 {
     foreach (var nodeInfo in nodeInfoList)
     {
         if (nodeInfo.allowedGraphMask == (int)graphType)
         {
             foreach (var ni in nodeInfo.typeInfos)
             {
                 yield return(ni.type);
             }
         }
     }
 }
        public static List <NodeTypeInfoList> GetAllowedNodesForGraph(BaseGraphType graphType)
        {
            switch (graphType)
            {
            case BaseGraphType.World:
                return(worldGraphInfoList);

            case BaseGraphType.Biome:
                return(biomeGraphInfoList);

            default:
                Debug.LogError("Could not find allowed nodes for the graph " + graphType);
                return(null);
            }
        }