Interface UndirectedEdges

All Superinterfaces:
Edges
All Known Implementing Classes:
FastUndirectedUnweightedEdges, FastUndirectedWeightedEdges

public interface UndirectedEdges
extends Edges
Interface for the directed edges.
  • Method Details

    • getIncidentNodes

      default java.util.stream.Stream<java.lang.Integer> getIncidentNodes​(int node)
      Description copied from interface: Edges
      Gets the incoming neighbourhood of a node.
      Specified by:
      getIncidentNodes in interface Edges
      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: Edges
      Gets the outgoing neighbourhood of a node.
      Specified by:
      getAdjacentNodes in interface Edges
      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: Edges
      Gets the neighbors of a node which are, at the same time, incident and adjacent.
      Specified by:
      getMutualNodes in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the ids of the nodes.
    • getIncidentTypes

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

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

      default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getIncidentWeights​(int node)
      Description copied from interface: Edges
      Gets the weights of the incident edges of a node.
      Specified by:
      getIncidentWeights in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getMutualAdjacentTypes

      default java.util.stream.Stream<EdgeType> getMutualAdjacentTypes​(int node)
      Description copied from interface: Edges
      Gets the types of the adjacent edges of a node, such that there is a reciprocal. connection in the graph.
      Specified by:
      getMutualAdjacentTypes in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getMutualIncidentTypes

      default java.util.stream.Stream<EdgeType> getMutualIncidentTypes​(int node)
      Description copied from interface: Edges
      Gets the types of the incident edges of a node, such that there is a reciprocal. connection in the graph.
      Specified by:
      getMutualIncidentTypes in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getMutualTypes

      default java.util.stream.Stream<EdgeType> getMutualTypes​(int node)
      Description copied from interface: Edges
      Gets the types of the neighbourhood edges of a node, such that there is a reciprocal. connection in the graph.
      Specified by:
      getMutualTypes in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getAdjacentWeights

      default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getAdjacentWeights​(int node)
      Description copied from interface: Edges
      Gets the weights of the adjacent edges of a node.
      Specified by:
      getAdjacentWeights in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getMutualAdjacentWeights

      default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getMutualAdjacentWeights​(int node)
      Description copied from interface: Edges
      Gets the weights of the adjacent edges of a node which are reciprocated.
      Specified by:
      getMutualAdjacentWeights in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getMutualIncidentWeights

      default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getMutualIncidentWeights​(int node)
      Description copied from interface: Edges
      Gets the weights of the incident edges of a node which are reciprocated.
      Specified by:
      getMutualIncidentWeights in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getMutualWeights

      default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getMutualWeights​(int node)
      Description copied from interface: Edges
      For each mutual connection (node to u and u to node exist in the graph), gets the average values of the incident and adjacent edge between u and the node.
      Specified by:
      getMutualWeights in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getAdjacentCount

      default long getAdjacentCount​(int node)
      Description copied from interface: Edges
      Gets the number of adjacent nodes.
      Specified by:
      getAdjacentCount in interface Edges
      Parameters:
      node - The node.
      Returns:
      the number of adjacent nodes.
    • getMutualCount

      default long getMutualCount​(int node)
      Description copied from interface: Edges
      Gets the number of nodes which are, at the same time, adjacent and incident.
      Specified by:
      getMutualCount in interface Edges
      Parameters:
      node - The node.
      Returns:
      the number of mutual neighbors.