Interface: Graph<Location>
graphs.Graph
Type parameters
Name |
---|
Location |
Hierarchy
-
Graph
Implemented by
Methods
neighbors
▸ neighbors(id
): undefined
| Location
[]
Returns the set of direct connections reachable from a location.
Parameters
Name | Type | Description |
---|---|---|
id |
Location |
The location to check for connections from |
Returns
undefined
| Location
[]