neighbors property

List<Vertex<I>> get neighbors

get the neighbor vertexes of this vertex. 获取当前节点的邻居节点。

Implementation

List<Vertex<I>> get neighbors => [...nextVertexes, ...prevVertexes];