Interface UndirectedMultiEdges

All Superinterfaces:
MultiEdges
All Known Implementing Classes:
FastUndirectedUnweightedMultiEdges, FastUndirectedWeightedMultiEdges

public interface UndirectedMultiEdges
extends MultiEdges
Class for the undirected multi-edges.
  • Method Details

    • getIncidentNodes

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

      default java.util.stream.Stream<java.lang.Integer> getAdjacentNodes​(int node)
      Description copied from interface: MultiEdges
      Gets the outgoing neighbourhood of a node.
      Specified by:
      getAdjacentNodes 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.
    • getIncidentTypes

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

      default java.util.stream.Stream<MultiEdgeTypes> getAdjacentTypes​(int node)
      Description copied from interface: MultiEdges
      Gets the types of the adjacent edges of a node.
      Specified by:
      getAdjacentTypes 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
    • getNodesWithIncidentEdges

      default java.util.stream.IntStream getNodesWithIncidentEdges()
      Description copied from interface: MultiEdges
      Obtains the set of nodes which have incident edges.
      Specified by:
      getNodesWithIncidentEdges in interface MultiEdges
      Returns:
      a stream containing the ids of nodes with incident edges
    • getNodesWithAdjacentEdges

      default java.util.stream.IntStream getNodesWithAdjacentEdges()
      Description copied from interface: MultiEdges
      Obtains the set of nodes which have adjacent edges.
      Specified by:
      getNodesWithAdjacentEdges in interface MultiEdges
      Returns:
      a stream containing the ids of nodes with incident edges
    • getNodesWithMutualEdges

      default java.util.stream.IntStream getNodesWithMutualEdges()
      Description copied from interface: MultiEdges
      Obtains the set of nodes which have, at least, a reciprocal edge.
      Specified by:
      getNodesWithMutualEdges in interface MultiEdges
      Returns:
      a stream containing the ids of nodes with reciprocal edges.