Interface GraphVertex


  • public interface GraphVertex
    Simple interface for a graph vertex.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getAttribute​(java.lang.String attributeName)
      Get the value of an attribute.
      java.lang.String getID()
      Get the unique ID string tagged to the vertex.
      java.lang.String getName()
      Get the name of the vertex.
      void setAttribute​(java.lang.String attributeName, java.lang.String value)
      Set an attribute on this edge.
      void setName​(java.lang.String name)
      Set the name of the vertex.
    • Method Detail

      • setName

        void setName​(java.lang.String name)
        Set the name of the vertex. Usually it's label on the graph display.
        Parameters:
        name - the new vertex name.
      • getName

        java.lang.String getName()
        Get the name of the vertex.
        Returns:
        vertex name
      • getID

        java.lang.String getID()
        Get the unique ID string tagged to the vertex. This was set when the vertex was created.
        Returns:
        vertex ID
      • setAttribute

        void setAttribute​(java.lang.String attributeName,
                          java.lang.String value)
        Set an attribute on this edge. NOTE: you must also define the attribute name on the graph display that this graph edge will be displayed on.
        Parameters:
        attributeName - the name of the attribute
        value - the value of the attribute
      • getAttribute

        java.lang.String getAttribute​(java.lang.String attributeName)
        Get the value of an attribute.
        Parameters:
        attributeName - the name of the attribute
        Returns:
        the string value of the attribute