private void Init(TileType tileType, int width, int height) { this.TileType = tileType; this.MaxEdges = Helpers.GetMaxEdges(tileType); this.Height = height; this.Width = width; this.Graph = GraphFactory.CreateGraph(width, height, this.Passability); }