Search
Preparing search index...
The search index is not available
@esengine/egret-framework
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"AI/Pathfinding/BreadthFirst/UnweightedGraph"
es
UnweightedGraph
Class UnweightedGraph<T>
一个未加权图的基本实现。所有的边都被缓存。这种类型的图最适合于非基于网格的图。 作为边添加的任何节点都必须在边字典中有一个条目作为键。
Type parameters
T
Hierarchy
UnweightedGraph
Implements
IUnweightedGraph
<
T
>
Index
Properties
edges
Methods
add
Edges
For
Node
get
Neighbors
Properties
edges
edges
:
Map
<
T
,
T
[]
>
= new Map<T, T[]>()
Methods
add
Edges
For
Node
add
Edges
For
Node
(
node
:
T
, edges
:
T
[]
)
:
this
Parameters
node:
T
edges:
T
[]
Returns
this
get
Neighbors
get
Neighbors
(
node
:
T
)
:
T
[]
Parameters
node:
T
Returns
T
[]
Globals
"AI/
Pathfinding/
Breadth
First/
Unweighted
Graph"
es
Unweighted
Graph
edges
add
Edges
For
Node
get
Neighbors
Generated using
TypeDoc
一个未加权图的基本实现。所有的边都被缓存。这种类型的图最适合于非基于网格的图。 作为边添加的任何节点都必须在边字典中有一个条目作为键。