V - the type of the nodes storedpublic class SparseWeightedGraph<V> extends WeightedGraph<V>
| Modifier and Type | Method and Description |
|---|---|
static <T> SparseWeightedGraph<T> |
from(Iterable<T> nodes,
Iterable<Weighted<DirectedEdge<T>>> edges) |
static <T> SparseWeightedGraph<T> |
from(Iterable<Weighted<DirectedEdge<T>>> edges) |
Collection<Weighted<DirectedEdge<V>>> |
getIncomingEdges(V destinationNode) |
Collection<V> |
getNodes() |
double |
getWeightOf(V source,
V dest) |
filterEdgespublic static <T> SparseWeightedGraph<T> from(Iterable<T> nodes, Iterable<Weighted<DirectedEdge<T>>> edges)
public static <T> SparseWeightedGraph<T> from(Iterable<Weighted<DirectedEdge<T>>> edges)
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.