Interface UnweightedMultiEdges

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

public interface UnweightedMultiEdges
extends MultiEdges
Interface for unweighted edges
  • Method Details

    • getEdgeWeights

      default java.util.List<java.lang.Double> getEdgeWeights​(int orig, int dest)
      Description copied from interface: MultiEdges
      Gets the weight of an edge.
      Specified by:
      getEdgeWeights in interface MultiEdges
      Parameters:
      orig - The origin endpoint.
      dest - The destiny endpoint.
      Returns:
      the value if the edge exists, the default error value if not.
    • getIncidentWeights

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

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

      default java.util.stream.Stream<MultiEdgeWeights> getNeighbourWeights​(int node)
      Description copied from interface: MultiEdges
      Gets the weights of the neighbour edges of a node.
      Specified by:
      getNeighbourWeights in interface MultiEdges
      Parameters:
      node - The node.
      Returns:
      a sream containing all the edge types.
    • getMutualWeights

      default java.util.stream.Stream<MultiEdgeWeights> getMutualWeights​(int node)
      Description copied from interface: MultiEdges
      Gets the weights of the neighbour edges of a node.
      Specified by:
      getMutualWeights in interface MultiEdges
      Parameters:
      node - The node.
      Returns:
      a sream containing all the edge types.