Documentation of 'edu.uci.ics.jung.graph.util.Context' Java class
Context
edu.uci.ics.jung.graph.util

Class Context<G,E>



  • public class Context<G,E>
    extends java.lang.Object
    A class that is used to link together a graph element and a specific graph. Provides appropriate implementations of hashCode and equals.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      E element
      The edge element which defines this context.
      G graph
      The graph element which defines this context.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Context() 
    • Field Detail

      • graph

        public G graph
        The graph element which defines this context.
      • element

        public E element
        The edge element which defines this context.
    • Constructor Detail

      • Context

        public Context()
    • Method Detail

      • getInstance

        public static <G,E> Context<G,E> getInstance(G graph,
                                                     E element)
        Type Parameters:
        G - the graph type
        E - the element type
        Parameters:
        graph - the graph for which the instance is created
        element - the element for which the instance is created
        Returns:
        an instance of this type for the specified graph and element
      • hashCode

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

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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.