ExtractWalkEntitiesFromHop
See javadoc - uk.gov.gchq.gaffer.data.graph.function.walk.ExtractWalkEntitiesFromHop
Available since Gaffer version 1.2.0
Extracts the set of entities from a single hop in a Walk
Examples
Extract single set of entities from walk
Java
JSON
Full JSON
Python
final ExtractWalkEntitiesFromHop function = new ExtractWalkEntitiesFromHop(1);
{
"class" : "ExtractWalkEntitiesFromHop",
"hop" : 1
}
{
"class" : "uk.gov.gchq.gaffer.data.graph.function.walk.ExtractWalkEntitiesFromHop",
"hop" : 1
}
g.ExtractWalkEntitiesFromHop(
hop=1
)
Input type:
uk.gov.gchq.gaffer.data.graph.Walk
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
uk.gov.gchq.gaffer.data.graph.Walk | [[Edge[source=A,destination=B,directed=true,group=BasicEdge,properties=Properties[]]], [Edge[source=B,destination=C,directed=true,group=BasicEdge,properties=Properties[]]], [Edge[source=C,destination=A,directed=true,group=BasicEdge,properties=Properties[]]]] | java.util.HashSet | [Entity[vertex=B,group=BasicEntity,properties=Properties[]], Entity[vertex=B,group=EnhancedEntity,properties=Properties[]]] |