Interface AdjacencyMaps

    • Method Detail

      • add

        default void add​(AdjacencyMap adjacencyMap)
        Add a new AdjacencyMap.
        Parameters:
        adjacencyMap - the AdjacencyMap to add
      • get

        default AdjacencyMap get​(int n)
        Retrieve the nth AdjacencyMap.
        Parameters:
        n - the index of the adjacency map to retrieve
        Returns:
        the nth AdjacencyMap
      • size

        default int size()
        Return the number of AdjacencyMaps present in the AdjacencyMaps object.

        Depending on the context, this could refer to the number of hops present, or the number of timesteps etc.

        Returns:
        the size of the AdjacencyMaps object
      • empty

        default boolean empty()
        Return true if this AdjacencyMaps object is empty, otherwise false.
        Returns:
        the empty state of this object
      • prettyPrint

        default String prettyPrint()
        Print the AdjacencyMaps object in an easily readable format.
        Returns:
        a prettily printed String representation of the AdjacencyMap object.
      • asList

        List<AdjacencyMap> asList()
        Get a representation of the current AdjacencyMaps object as a List.
        Returns:
        a List representation of the current AdjacencyMaps object