| 构造器和说明 |
|---|
EntityGraph(boolean directed) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addEdge(int i,
int j,
double weight) |
int |
addVertex(E e) |
Collection<Integer> |
adjacentVertices(int i) |
void |
clear() |
double |
edgeWeight(int i,
int j) |
E |
getVertex(int id) |
void |
removeEdge(int i,
int j) |
void |
removeVertex(E e) |
void |
removeVertex(int id) |
Collection<Integer> |
vertices()
the vertices of this graph
|
public int addVertex(E e)
public void removeVertex(int id)
public void removeVertex(E e)
public E getVertex(int id)
public void addEdge(int i,
int j,
double weight)
public void removeEdge(int i,
int j)
public void clear()
public double edgeWeight(int i,
int j)
edgeWeight 在接口中 BaseGraphi - the index of one vertexj - the index of another vertexBaseGraph.Npublic Collection<Integer> adjacentVertices(int i)
adjacentVertices 在接口中 BaseGraphi - ith vertexpublic Collection<Integer> vertices()
BaseGraphCopyright © 2019. All rights reserved.