using System; using System.Collections.Generic; using System.Linq; namespace Goap.Goap.Editor { public class Graph { public Dictionary RootNodes { get; set; } = new Dictionary(); public Dictionary ChildNodes { get; set; } = new Dictionary(); public Dictionary AllNodes => this.RootNodes.Union(this.ChildNodes).ToDictionary(x => x.Key, x => x.Value); } }