Class GraphCharacteristics


  • public final class GraphCharacteristics
    extends java.lang.Object
    Graph characteristics describe certain capabilities of the graph.

    Algorithms define the graph characteristics that they require to for correct execution. The execution framework can use both, the graph and the required characteristics to check if the algorithm can be run on the given graph.

    • Method Detail

      • isDirected

        public boolean isDirected()
      • isUndirected

        public boolean isUndirected()
      • isInverseIndexed

        public boolean isInverseIndexed()
      • intersect

        public GraphCharacteristics intersect​(GraphCharacteristics other)
        Intersects the characteristics with the given one and returns a new characteristics instance. The resulting object will contain only those characteristics that are present in both inputs.
        Parameters:
        other - the characteristics to intersect with
        Returns:
        a new `GraphCharacteristics` object that contains the shared characteristics of the input
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object