ExtractWalkEdges
See javadoc - uk.gov.gchq.gaffer.data.graph.function.walk.ExtractWalkEdges
Available since Gaffer version 1.2.0
An ExtractWalkEdges will extract a List of ALL Sets of Edges, from a given Walk.
Examples
Extract edges from walk
Java
JSON
Full JSON
Python
final ExtractWalkEdges function = new ExtractWalkEdges();{
"class" : "ExtractWalkEdges"
}{
"class" : "uk.gov.gchq.gaffer.data.graph.function.walk.ExtractWalkEdges"
}g.ExtractWalkEdges()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=EnhancedEdge,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.LinkedList | [[Edge[source=A,destination=B,directed=true,group=BasicEdge,properties=Properties[]]], [Edge[source=B,destination=C,directed=true,group=EnhancedEdge,properties=Properties[]], Edge[source=B,destination=C,directed=true,group=BasicEdge,properties=Properties[]]], [Edge[source=C,destination=A,directed=true,group=BasicEdge,properties=Properties[]]]] |