public interface BaseGraph
| 限定符和类型 | 字段和说明 |
|---|---|
static double |
N
weight between two unreachable vertices
|
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<Integer> |
adjacentVertices(int i) |
double |
edgeWeight(int i,
int j) |
boolean |
isDirected()
if this graph is directed or not
|
Collection<Integer> |
vertices()
the vertices of this graph
|
static final double N
double edgeWeight(int i,
int j)
i - the index of one vertexj - the index of another vertexNCollection<Integer> adjacentVertices(int i)
i - ith vertexCollection<Integer> vertices()
boolean isDirected()
Copyright © 2019. All rights reserved.