V - the type of the nodes storedpublic class DenseWeightedGraph<V> extends WeightedGraph<V>
| Modifier and Type | Method and Description |
|---|---|
static DenseWeightedGraph<Integer> |
from(double[][] weights) |
static <V> DenseWeightedGraph<V> |
from(Iterable<V> nodes,
double[][] weights) |
Collection<Weighted<DirectedEdge<V>>> |
getIncomingEdges(V destinationNode) |
Collection<V> |
getNodes() |
double |
getWeightOf(V source,
V dest) |
filterEdgespublic static <V> DenseWeightedGraph<V> from(Iterable<V> nodes, double[][] weights)
public static DenseWeightedGraph<Integer> from(double[][] weights)
public Collection<V> getNodes()
getNodes in class WeightedGraph<V>public double getWeightOf(V source, V dest)
getWeightOf in class WeightedGraph<V>public Collection<Weighted<DirectedEdge<V>>> getIncomingEdges(V destinationNode)
getIncomingEdges in class WeightedGraph<V>Copyright © 2017 Grakn Labs Ltd. All rights reserved.