public class Graphs extends Object
| 构造器和说明 |
|---|
Graphs() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<List<Integer>> |
connectedComponents(BaseGraph graph) |
static int |
edgesCountOf(BaseGraph graph)
compute the number of edges in a graph
|
static BaseGraph |
empty() |
static BaseGraph |
fullConnectedGraph(List<javax.vecmath.Point3d> vertices) |
static BaseGraph |
graph(double[][] edges,
int[][] adjacency) |
static BaseGraph |
knnGraph(List<javax.vecmath.Point3d> vertices,
List<int[]> knnIndices) |
static Graph |
knnGraph2(List<int[]> knnIndices,
List<javax.vecmath.Point3d> data) |
static BaseGraph |
subGraph(BaseGraph graph,
Set<Integer> vertices)
get a graph where the vertices is a sub-set of another graph
|
public static BaseGraph subGraph(BaseGraph graph, Set<Integer> vertices)
graph - another graphvertices - indices of verticespublic static int edgesCountOf(BaseGraph graph)
graph - a graphpublic static BaseGraph knnGraph(List<javax.vecmath.Point3d> vertices, List<int[]> knnIndices)
public static BaseGraph graph(double[][] edges, int[][] adjacency)
public static BaseGraph empty()
Copyright © 2019. All rights reserved.