Modifier and Type | Method and Description |
---|---|
Vertex<V> |
IGraph.getRandomConnectedVertex(int vertex,
Random rng)
Randomly sample a vertex connected to a given vertex.
|
Vertex<V> |
IGraph.getVertex(int idx)
Get a vertex in the graph for a given index
|
Modifier and Type | Method and Description |
---|---|
List<Vertex<V>> |
IGraph.getConnectedVertices(int vertex)
Get a list of all of the vertices that the specified vertex is connected to
Specifically, for undirected graphs return list of all X such that (vertex -- X) exists For directed graphs, return list of all X such that (vertex -> X) exists |
List<Vertex<V>> |
IGraph.getVertices(int[] indexes)
Get multiple vertices in the graph
|
List<Vertex<V>> |
IGraph.getVertices(int from,
int to)
Get multiple vertices in the graph, with secified indices
|
Modifier and Type | Method and Description |
---|---|
List<Vertex<V>> |
VertexLoader.loadVertices(String path) |
Modifier and Type | Method and Description |
---|---|
List<Vertex<String>> |
DelimitedVertexLoader.loadVertices(String path) |
Modifier and Type | Method and Description |
---|---|
Vertex<V> |
Graph.getRandomConnectedVertex(int vertex,
Random rng) |
Vertex<V> |
Graph.getVertex(int idx) |
Vertex<V> |
VertexSequence.next() |
Modifier and Type | Method and Description |
---|---|
List<Vertex<V>> |
Graph.getConnectedVertices(int vertex) |
List<Vertex<V>> |
Graph.getVertices(int[] indexes) |
List<Vertex<V>> |
Graph.getVertices(int from,
int to) |
Constructor and Description |
---|
Graph(List<Vertex<V>> vertices) |
Graph(List<Vertex<V>> vertices,
boolean allowMultipleEdges) |
Modifier and Type | Method and Description |
---|---|
INDArray |
GraphVectors.getVertexVector(Vertex<V> vertex) |
double |
GraphVectors.similarity(Vertex<V> vertex1,
Vertex<V> vertex2) |
double |
GraphVectors.similarity(Vertex<V> vertex1,
Vertex<V> vertex2) |
Modifier and Type | Method and Description |
---|---|
INDArray |
GraphVectorsImpl.getVertexVector(Vertex<V> vertex) |
double |
GraphVectorsImpl.similarity(Vertex<V> vertex1,
Vertex<V> vertex2)
Returns the cosine similarity of the vector representations of two vertices in the graph
|
double |
GraphVectorsImpl.similarity(Vertex<V> vertex1,
Vertex<V> vertex2)
Returns the cosine similarity of the vector representations of two vertices in the graph
|
Modifier and Type | Method and Description |
---|---|
Vertex<Integer> |
IntegerVertexFactory.create(int vertexIdx) |
Vertex<String> |
StringVertexFactory.create(int vertexIdx) |
Vertex<T> |
VertexFactory.create(int vertexIdx) |
Vertex<Void> |
VoidVertexFactory.create(int vertexIdx) |
Copyright © 2020. All rights reserved.