@Deprecated public class Analytics extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
connectedComponent
Deprecated.
|
static String |
degree
Deprecated.
|
| Constructor and Description |
|---|
Analytics(String keySpace,
Set<String> subTypeNames,
Set<String> statisticsResourceTypeNames)
Deprecated.
Create a graph computer from a Grakn Graph.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<String>> |
connectedComponents()
Deprecated.
Compute the number of connected components.
|
Map<String,Long> |
connectedComponentsAndPersist()
Deprecated.
Compute the connected components and persist the component labels
|
Map<String,Long> |
connectedComponentsSize()
Deprecated.
Compute the number of connected components.
|
long |
count()
Deprecated.
Count the number of instances in the graph.
|
Map<Long,Set<String>> |
degrees()
Deprecated.
Compute the number of relations that each instance takes part in.
|
void |
degreesAndPersist()
Deprecated.
Compute the number of relations that each instance takes part in and persist this information in the graph.
|
protected GraknComputer |
getGraphComputer()
Deprecated.
|
Optional<Number> |
max()
Deprecated.
Maximum value of the selected resource-type.
|
Optional<Double> |
mean()
Deprecated.
Compute the mean of instances of the selected resource-type.
|
Optional<Number> |
median()
Deprecated.
Compute the median of instances of the selected resource-type.
|
Optional<Number> |
min()
Deprecated.
Minimum value of the selected resource-type.
|
List<Concept> |
shortestPath(String sourceId,
String destinationId)
Deprecated.
Compute the shortest path between two vertices.
|
Optional<Double> |
std()
Deprecated.
Compute the standard deviation of instances of the selected resource-type.
|
Optional<Number> |
sum()
Deprecated.
Sum of values of the selected resource-type.
|
protected boolean |
verticesExistInSubgraph(String... ids)
Deprecated.
|
public static final String degree
public static final String connectedComponent
public Analytics(String keySpace, Set<String> subTypeNames, Set<String> statisticsResourceTypeNames)
subtypeNames argument. All subtypeNames of the given types are included when deciding whether to
include an instance.subTypeNames - the set of type names the computer will use to filter instancesstatisticsResourceTypeNames - the set of resource type ids statistics will be working onpublic long count()
public Optional<Number> min()
public Optional<Number> max()
public Optional<Number> sum()
public Optional<Double> mean()
public Optional<Number> median()
public Optional<Double> std()
public List<Concept> shortestPath(String sourceId, String destinationId)
public Map<String,Set<String>> connectedComponents()
public Map<String,Long> connectedComponentsSize()
public Map<String,Long> connectedComponentsAndPersist()
public Map<Long,Set<String>> degrees()
public void degreesAndPersist()
protected GraknComputer getGraphComputer()
protected boolean verticesExistInSubgraph(String... ids)
Copyright © 2016 Grakn Labs Ltd. All rights reserved.