addUniqueNeighbor method

void addUniqueNeighbor(
  1. Vertex? vertex
)

Implementation

void addUniqueNeighbor(Vertex? vertex){
    if(vertex == null) return;
	SMUtil.pushIfUnique(this.neighbors, vertex);
}