Interface DirectedMultiEdges

All Superinterfaces:
MultiEdges
All Known Implementing Classes:
FastDirectedUnweightedMultiEdges, FastDirectedWeightedMultiEdges

public interface DirectedMultiEdges
extends MultiEdges
Class for the directed multi-edges.
  • Method Details

    • getNeighbourNodes

      default java.util.stream.Stream<java.lang.Integer> getNeighbourNodes​(int node)
      Description copied from interface: MultiEdges
      Gets the full neighbourhood of a node.
      Specified by:
      getNeighbourNodes in interface MultiEdges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the ids of the nodes.
    • getMutualNodes

      default java.util.stream.Stream<java.lang.Integer> getMutualNodes​(int node)
      Description copied from interface: MultiEdges
      Gets the neighbors of the user with whom he has both incoming and outgoing links.
      Specified by:
      getMutualNodes in interface MultiEdges
      Parameters:
      node - The node.
      Returns:
      a stream containing the ids of the mutual neighborhood.
    • getNeighbourTypes

      default java.util.stream.Stream<MultiEdgeTypes> getNeighbourTypes​(int node)
      Description copied from interface: MultiEdges
      Gets the types of the neighbourhood edges of a node.
      Specified by:
      getNeighbourTypes in interface MultiEdges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getMutualTypes

      default java.util.stream.Stream<MultiEdgeTypes> getMutualTypes​(int node)
      Description copied from interface: MultiEdges
      Gets the types of the neighbourhood edges of a node.
      Specified by:
      getMutualTypes in interface MultiEdges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getNeighbourCount

      default int getNeighbourCount​(int node)
      Description copied from interface: MultiEdges
      Gets the number of edges which reach or start in a certain node
      Specified by:
      getNeighbourCount in interface MultiEdges
      Parameters:
      node - the node
      Returns:
      the number of edges which reach or start in that node