Interface Edge

    • Method Detail

      • getSource

        Node getSource()
        Returns the egde's source.
        Returns:
        source node
      • getTarget

        Node getTarget()
        Returns the edge's target.
        Returns:
        target node
      • getWeight

        double getWeight()
        Returns the edge's weight.
        Returns:
        weight
      • getWeight

        double getWeight​(double timestamp)
        Returns the edge's weight at the given timestamp.
        Parameters:
        timestamp - timestamp
        Returns:
        weight
      • getWeight

        double getWeight​(Interval interval)
        Returns the edge's weight at the given interval.
        Parameters:
        interval - interval
        Returns:
        weight
      • getWeight

        double getWeight​(GraphView view)
        Returns the edge's weight in the given graph view.

        Views can configure a time interval and therefore the edge weight over time may vary.

        Parameters:
        view - graph view
        Returns:
        weight
      • getWeights

        Iterable<Map.Entry> getWeights()
        Returns an iterable of all weights over time.
        Returns:
        weights iterable
      • setWeight

        void setWeight​(double weight)
        Sets the edge's weight.
        Parameters:
        weight - weight
      • setWeight

        void setWeight​(double weight,
                       double timestamp)
        Sets the edge's weight at the given timestamp.
        Parameters:
        weight - weight
        timestamp - timestamp
      • setWeight

        void setWeight​(double weight,
                       Interval interval)
        Sets the edge's weight at the given interval.
        Parameters:
        weight - weight
        interval - interval
      • hasDynamicWeight

        boolean hasDynamicWeight()
        Returns true if this edge has a dynamic weight.
        Returns:
        true if the edge has a dynamic weight, false otherwise
      • getType

        int getType()
        Returns the edge's type.
        Returns:
        type
      • getTypeLabel

        Object getTypeLabel()
        Returns the edge's type label.
        Returns:
        type label
      • isSelfLoop

        boolean isSelfLoop()
        Returns true if this edge is a self-loop.
        Returns:
        true if self-loop, false otherwise
      • isDirected

        boolean isDirected()
        Returns true if this edge is directed.
        Returns:
        true if directed, false otherwise