Class GraphType

  • Direct Known Subclasses:
    EmptyGraphType, ProgramGraphType

    public class GraphType
    extends java.lang.Object
    Class that defines a new graph type. It defines the set of valid vertex and edge types
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphType​(java.lang.String name, java.lang.String description, java.util.List<java.lang.String> vertexTypes, java.util.List<java.lang.String> edgeTypes)
      Constructs a new GraphType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsEdgeType​(java.lang.String edgeType)
      Test if the given string is a valid edge type
      boolean containsVertexType​(java.lang.String vertexType)
      Test if the given string is a valid vertex type
      boolean equals​(java.lang.Object obj)  
      java.lang.String getDescription()
      Returns a description for this type of graph
      java.util.List<java.lang.String> getEdgeTypes()
      Returns a list of valid edge types for graphs of this type
      java.lang.String getName()
      Returns a name for this type of graph
      java.lang.String getOptionsName()  
      java.util.List<java.lang.String> getVertexTypes()
      Returns a list of valid vertex types for graphs of this type
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphType

        public GraphType​(java.lang.String name,
                         java.lang.String description,
                         java.util.List<java.lang.String> vertexTypes,
                         java.util.List<java.lang.String> edgeTypes)
        Constructs a new GraphType
        Parameters:
        name - the name of this GraphType instance
        description - a brief description for graphs of this type
        vertexTypes - a list of all valid vertex types for graphs of this type
        edgeTypes - a list of all valid edge types for graphs of this type
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns a name for this type of graph
        Returns:
        a name of this type of graph
      • getDescription

        public java.lang.String getDescription()
        Returns a description for this type of graph
        Returns:
        a description for this type of graph
      • getVertexTypes

        public java.util.List<java.lang.String> getVertexTypes()
        Returns a list of valid vertex types for graphs of this type
        Returns:
        a list of valid vertex types for graphs of this type
      • getEdgeTypes

        public java.util.List<java.lang.String> getEdgeTypes()
        Returns a list of valid edge types for graphs of this type
        Returns:
        a list of valid edge types for graphs of this type
      • containsVertexType

        public boolean containsVertexType​(java.lang.String vertexType)
        Test if the given string is a valid vertex type
        Parameters:
        vertexType - the string to test for being a valid vertex type
        Returns:
        true if the given string is a valid vertex type
      • containsEdgeType

        public boolean containsEdgeType​(java.lang.String edgeType)
        Test if the given string is a valid edge type
        Parameters:
        edgeType - the string to test for being a valid edge type
        Returns:
        true if the given string is a valid edge type
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getOptionsName

        public java.lang.String getOptionsName()