using System.Collections.Generic; using System.Linq; using Goap.Core; namespace Goap.Goap.Resolver { public class Graph : IGraph { public List RootNodes { get; set; } = new(); public List ChildNodes { get; set; } = new(); public INode[] AllNodes => this.RootNodes.Union(this.ChildNodes).ToArray(); public INode[] UnconnectedNodes { get; set; } } }