Class PrunedAdjacencyMaps
- java.lang.Object
-
- uk.gov.gchq.gaffer.data.graph.adjacency.PrunedAdjacencyMaps
-
- All Implemented Interfaces:
Iterable<AdjacencyMap>,AdjacencyMaps
public class PrunedAdjacencyMaps extends Object implements AdjacencyMaps
APrunedAdjacencyMapsobject represents a collection ofAdjacencyMaps containing graph adjacency information.As the
AdjacencyMaps are added, a comparison is made between the destination vertices of the previous map and the source vertices of the newly added map. Any entries in the preceding map which do not join up with a source vertex in the new map are deemed to be orphaned paths, and are removed.
-
-
Constructor Summary
Constructors Constructor Description PrunedAdjacencyMaps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(AdjacencyMap adjacencyMap)Add a newAdjacencyMap.List<AdjacencyMap>asList()Get a representation of the current AdjacencyMaps object as aList.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.data.graph.adjacency.AdjacencyMaps
empty, get, iterator, prettyPrint, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
add
public void add(AdjacencyMap adjacencyMap)
Description copied from interface:AdjacencyMapsAdd a newAdjacencyMap.- Specified by:
addin interfaceAdjacencyMaps- Parameters:
adjacencyMap- the AdjacencyMap to add
-
asList
public List<AdjacencyMap> asList()
Description copied from interface:AdjacencyMapsGet a representation of the current AdjacencyMaps object as aList.- Specified by:
asListin interfaceAdjacencyMaps- Returns:
- a
Listrepresentation of the current AdjacencyMaps object
-
-